	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk1160_stop_hw
_stk1160_stop_hw:                       ## @stk1160_stop_hw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	$0, 8(%rdi)
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_stk1160_dbg
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_usb_set_interface
	movq	_STK1160_DCTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stk1160_write_reg
	movq	(%r14), %rsi
	addq	$3, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stk1160_write_reg
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_v4l2_device_call_all           ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting alternate %d\n"

	.comm	_STK1160_DCTRL,8,3              ## @STK1160_DCTRL
	.comm	_video,4,2                      ## @video
	.comm	_s_stream,4,2                   ## @s_stream
	.no_dead_strip	_stk1160_stop_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk1160_stop_hw
_stk1160_stop_hw:                       ; @stk1160_stop_hw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	str	xzr, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	bl	_stk1160_dbg
	ldr	w0, [x19, #4]
	mov	w1, #0
	mov	w2, #0
	bl	_usb_set_interface
Lloh2:
	adrp	x20, _STK1160_DCTRL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _STK1160_DCTRL@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_stk1160_write_reg
	ldr	x8, [x20]
	add	x1, x8, #3
	mov	x0, x19
	mov	w2, #0
	bl	_stk1160_write_reg
Lloh4:
	adrp	x8, _video@GOTPAGE
Lloh5:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _s_stream@GOTPAGE
Lloh8:
	ldr	x8, [x8, _s_stream@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_device_call_all
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting alternate %d\n"

	.comm	_STK1160_DCTRL,8,3              ; @STK1160_DCTRL
	.comm	_video,4,2                      ; @video
	.comm	_s_stream,4,2                   ; @s_stream
	.no_dead_strip	_stk1160_stop_hw
.subsections_via_symbols
