	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_send_startup_command
_si4713_send_startup_command:           ## @si4713_send_startup_command
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_USB_RESP_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usecs_to_jiffies
	movl	%eax, %r14d
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %r15d
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_BUFFER_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_USB_TIMEOUT@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	subq	$8, %rsp
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	$9, %edx
	movl	$33, %ecx
	movl	$831, %r8d                      ## imm = 0x33F
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%r10
	pushq	(%r12)
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	incl	%eax
	movslq	%eax, %r14
	movq	_SI4713_CTS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_BUFFER_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	(%r13), %r11d
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$161, %ecx
	movl	$831, %r8d                      ## imm = 0x33F
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	(%r12)
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	cmpl	$0, 4(%rcx)
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	xorl	%eax, %eax
	cmpl	$19, %edx
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$6, %edx
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$18, %edx
	je	LBB0_7
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$20, %edx
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$50, %edx
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 8(%rcx)
	jne	LBB0_13
	jmp	LBB0_15
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	testl	%edx, 8(%rcx)
	je	LBB0_13
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	testl	%edx, 8(%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$8, 36(%rcx)
	je	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_time_is_before_jiffies
	testq	%rax, %rax
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$3, %edi
	callq	_msleep
	jmp	LBB0_2
LBB0_14:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_USB_RESP_TIMEOUT,4,2           ## @USB_RESP_TIMEOUT
	.comm	_BUFFER_LENGTH,4,2              ## @BUFFER_LENGTH
	.comm	_USB_TIMEOUT,4,2                ## @USB_TIMEOUT
	.comm	_SI4713_CTS,4,2                 ## @SI4713_CTS
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_si4713_send_startup_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_send_startup_command
_si4713_send_startup_command:           ; @si4713_send_startup_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _USB_RESP_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_RESP_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_usecs_to_jiffies
	mov	x20, x0
	ldr	x22, [x19]
	ldr	w21, [x19, #8]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	x6, [x19]
Lloh6:
	adrp	x23, _BUFFER_LENGTH@GOTPAGE
Lloh7:
	ldr	x23, [x23, _BUFFER_LENGTH@GOTPAGEOFF]
	ldr	w7, [x23]
Lloh8:
	adrp	x24, _USB_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _USB_TIMEOUT@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp]
	mov	x0, x21
	mov	w2, #9
	mov	w3, #33
	mov	w4, #831
	mov	w5, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_17
; %bb.1:
	add	w8, w25, w20
	add	w8, w8, #1
	sxtw	x20, w8
Lloh10:
	adrp	x25, _SI4713_CTS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SI4713_CTS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #8]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	x6, [x19]
	ldr	w7, [x23]
	ldr	w8, [x24]
	str	w8, [sp]
	mov	x0, x21
	mov	w2, #1
	mov	w3, #161
	mov	w4, #831
	mov	w5, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	ldr	w9, [x22, #4]
	cmp	w9, #19
	b.gt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w9, #6
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w9, #18
	b.eq	LBB0_10
	b	LBB0_17
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w9, #20
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w9, #50
	b.ne	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_13
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x8, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_13
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x8, #8]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x8, #36]
	cmp	w8, #8
	b.eq	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_time_is_before_jiffies
	cbnz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #3
	bl	_msleep
	b	LBB0_2
LBB0_15:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_USB_RESP_TIMEOUT,4,2           ; @USB_RESP_TIMEOUT
	.comm	_BUFFER_LENGTH,4,2              ; @BUFFER_LENGTH
	.comm	_USB_TIMEOUT,4,2                ; @USB_TIMEOUT
	.comm	_SI4713_CTS,4,2                 ; @SI4713_CTS
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_si4713_send_startup_command
.subsections_via_symbols
