	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _usbctrl_vendorreq_sync_read
__usbctrl_vendorreq_sync_read:          ## @_usbctrl_vendorreq_sync_read
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movl	%eax, %r15d
	movq	_REALTEK_USB_VENQT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	movq	_MAX_USBCTRL_VENDORREQ_TIMES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subq	$8, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	$1000                           ## imm = 0x3E8
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_FW_8192C_START_ADDRESS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_FW_8192C_END_ADDRESS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_4
LBB0_5:
	movl	__usbctrl_vendorreq_sync_read.count(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, __usbctrl_vendorreq_sync_read.count(%rip)
	cmpl	$3, %eax
	jg	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_pr_err
LBB0_7:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,__usbctrl_vendorreq_sync_read.count,4,2 ## @_usbctrl_vendorreq_sync_read.count
	.comm	_REALTEK_USB_VENQT_READ,4,2     ## @REALTEK_USB_VENQT_READ
	.comm	_FW_8192C_START_ADDRESS,4,2     ## @FW_8192C_START_ADDRESS
	.comm	_FW_8192C_END_ADDRESS,4,2       ## @FW_8192C_END_ADDRESS
	.comm	_MAX_USBCTRL_VENDORREQ_TIMES,4,2 ## @MAX_USBCTRL_VENDORREQ_TIMES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg 0x%x, usbctrl_vendorreq TimeOut! status:0x%x value=0x%x\n"

	.no_dead_strip	__usbctrl_vendorreq_sync_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _usbctrl_vendorreq_sync_read
__usbctrl_vendorreq_sync_read:          ; @_usbctrl_vendorreq_sync_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x20, x4
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x24, x0
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x25, x0
	mov	w28, #0
Lloh0:
	adrp	x8, _REALTEK_USB_VENQT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REALTEK_USB_VENQT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w8, #1000
	str	w8, [sp]
	mov	x0, x24
	mov	x1, x25
	mov	x2, x23
	mov	x3, x26
	mov	x4, x19
	mov	x5, x22
	mov	x6, x20
	mov	x7, x21
	bl	_usb_control_msg
	mov	x27, x0
	tbz	w0, #31, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh3:
	adrp	x8, _FW_8192C_START_ADDRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_8192C_START_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FW_8192C_END_ADDRESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FW_8192C_END_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #8, le
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w28, w28, #1
Lloh9:
	adrp	x8, _MAX_USBCTRL_VENDORREQ_TIMES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_USBCTRL_VENDORREQ_TIMES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w28, w8
	b.lt	LBB0_1
LBB0_4:
	adrp	x8, __usbctrl_vendorreq_sync_read.count@PAGE
	ldr	w9, [x8, __usbctrl_vendorreq_sync_read.count@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, __usbctrl_vendorreq_sync_read.count@PAGEOFF]
	cmp	w9, #3
	b.gt	LBB0_6
; %bb.5:
	ldr	w3, [x20]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x27
	bl	_pr_err
LBB0_6:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,__usbctrl_vendorreq_sync_read.count,4,2 ; @_usbctrl_vendorreq_sync_read.count
	.comm	_REALTEK_USB_VENQT_READ,4,2     ; @REALTEK_USB_VENQT_READ
	.comm	_FW_8192C_START_ADDRESS,4,2     ; @FW_8192C_START_ADDRESS
	.comm	_FW_8192C_END_ADDRESS,4,2       ; @FW_8192C_END_ADDRESS
	.comm	_MAX_USBCTRL_VENDORREQ_TIMES,4,2 ; @MAX_USBCTRL_VENDORREQ_TIMES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg 0x%x, usbctrl_vendorreq TimeOut! status:0x%x value=0x%x\n"

	.no_dead_strip	__usbctrl_vendorreq_sync_read
.subsections_via_symbols
