	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sn9c2028_read4
_sn9c2028_read4:                        ## @sn9c2028_read4
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	4(%rdi), %ebx
	xorl	%r13d, %r13d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_REQ_GET_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	(%r12), %r10d
	subq	$8, %rsp
	movl	$4, %r15d
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %r8d
	xorl	%r9d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$4
	pushq	%r10
	callq	_usb_control_msg
	addq	$32, %rsp
	cmpl	$4, %eax
	jne	LBB0_1
## %bb.2:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_D_USBI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	movl	8(%r14), %r9d
	movl	12(%r14), %eax
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	pushq	%rax
	callq	_gspca_dbg
	addq	$16, %rsp
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	testl	%ebx, %ebx
	cmovsl	%ebx, %r13d
	movl	%r13d, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_REQ_GET_STATUS,4,2         ## @USB_REQ_GET_STATUS
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read4 error %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_D_USBI,4,2                     ## @D_USBI
L_.str.1:                               ## @.str.1
	.asciz	"read4 response %02x%02x%02x%02x\n"

	.no_dead_strip	_sn9c2028_read4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sn9c2028_read4
_sn9c2028_read4:                        ; @sn9c2028_read4
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x0, #4]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _USB_REQ_GET_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_REQ_GET_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w6, [x19]
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #4
	mov	w5, #0
	mov	w7, #4
	bl	_usb_control_msg
	mov	x21, x0
	cmp	w0, #4
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
Lloh12:
	adrp	x8, _D_USBI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D_USBI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldp	w3, w4, [x20]
	ldp	w5, w6, [x20, #8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w21, w21, w8, lt
LBB0_3:
	mov	x0, x21
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_REQ_GET_STATUS,4,2         ; @USB_REQ_GET_STATUS
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read4 error %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_D_USBI,4,2                     ; @D_USBI
l_.str.1:                               ; @.str.1
	.asciz	"read4 response %02x%02x%02x%02x\n"

	.no_dead_strip	_sn9c2028_read4
.subsections_via_symbols
