	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function i2c_w1
LCPI0_0:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_i2c_w1:                                ## @i2c_w1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	js	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_D_USBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_gspca_dbg
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	movq	8(%rbx), %rax
	movl	$161, %ecx
	sbbl	$0, %ecx
	movl	%ecx, (%rax)
	movl	4(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	%r15d, 8(%rax)
	movl	%r14d, 12(%rax)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,16]
	movups	%xmm0, 16(%rax)
	movl	16(%rbx), %r14d
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	subq	$8, %rsp
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	$8, %edx
	movl	$8, %r8d
	xorl	%r9d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$8
	pushq	8(%rbx)
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r14d
	movl	$2, %edi
	callq	_msleep
	testl	%r14d, %r14d
	jns	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_err
	movl	%r14d, (%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_USBO,4,2                     ## @D_USBO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_w1 [%02x] = %02x\n"

	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
L_.str.1:                               ## @.str.1
	.asciz	"i2c_w1 err %d\n"

	.no_dead_strip	_i2c_w1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function i2c_w1
lCPI0_0:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_i2c_w1:                                ; @i2c_w1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _D_USBO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_USBO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	mov	x4, x20
	bl	_gspca_dbg
	ldr	w8, [x19]
	sub	w8, w8, #128
	ldr	x9, [x19, #8]
	cmp	w8, #3
	mov	w8, #160
	cinc	w8, w8, hs
	str	w8, [x9]
	ldr	w8, [x19, #4]
	stp	w8, w21, [x9, #4]
	str	w20, [x9, #12]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x9, #16]
	ldr	w20, [x19, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh7:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x6, [x19, #8]
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x20
	mov	w2, #8
	mov	w4, #8
	mov	w5, #0
	mov	w7, #8
	bl	_usb_control_msg
	mov	x20, x0
	mov	w0, #2
	bl	_msleep
	tbz	w20, #31, LBB0_3
; %bb.2:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	str	w20, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_D_USBO,4,2                     ; @D_USBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_w1 [%02x] = %02x\n"

	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
l_.str.1:                               ; @.str.1
	.asciz	"i2c_w1 err %d\n"

	.no_dead_strip	_i2c_w1
.subsections_via_symbols
