	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w9968cf_read_sb
_w9968cf_read_sb:                       ## @w9968cf_read_sb
	.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, (%rdi)
	js	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	16(%rdi), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$2
	pushq	8(%r14)
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	8(%r14), %rax
	movl	4(%rax), %ebx
	shll	$8, %ebx
	orl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_err
	movl	%ebx, (%r14)
LBB0_5:
	movq	_W9968CF_I2C_BUS_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read SB reg [01] failed"

	.comm	_W9968CF_I2C_BUS_DELAY,4,2      ## @W9968CF_I2C_BUS_DELAY
	.no_dead_strip	_w9968cf_read_sb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w9968cf_read_sb
_w9968cf_read_sb:                       ; @w9968cf_read_sb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w20, [x0, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x6, [x19, #8]
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x20
	mov	w2, #1
	mov	w4, #0
	mov	w5, #1
	mov	w7, #2
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	ldp	w9, w8, [x8]
	orr	w20, w9, w8, lsl #8
	b	LBB0_5
LBB0_3:
	mov	w20, #-1
	b	LBB0_6
LBB0_4:
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
	str	w20, [x19]
LBB0_5:
Lloh11:
	adrp	x8, _W9968CF_I2C_BUS_DELAY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _W9968CF_I2C_BUS_DELAY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_udelay
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read SB reg [01] failed"

	.comm	_W9968CF_I2C_BUS_DELAY,4,2      ; @W9968CF_I2C_BUS_DELAY
	.no_dead_strip	_w9968cf_read_sb
.subsections_via_symbols
