	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atread_submit
_atread_submit:                         ## @atread_submit
	.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
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_DEBUG_USBREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_gig_dbg
	movq	_BS_ATRDPEND@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_update_basstate
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_2:
	movq	_BS_SUSPEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_notice
	movl	(%r12), %edx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_update_basstate
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_IN_VENDOR_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	40(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 68(%rbx)
	movq	_HD_READ_ATMESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movl	(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, 40(%rbx)
	movl	32(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	72(%rbx), %r13d
	xorl	%r15d, %r15d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movl	(%rbx), %r9d
	movl	36(%rbx), %r8d
	movq	_read_ctrl_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	4(%r14), %r11d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	pushq	%r11
	pushq	%r10
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	movl	32(%rbx), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r13d
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_update_basstate
	movl	(%r14), %ebx
	movl	%r13d, %edi
	callq	_get_usb_rcmsg
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %r15d
	jmp	LBB0_8
LBB0_6:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.7:
	movq	_DEBUG_USBREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edx
	callq	_gig_dbg
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r12d
	movslq	%r12d, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	leaq	8(%rbx), %rdi
	movq	%rcx, 24(%rbx)
	movq	%r14, 8(%rbx)
	movq	_cmd_in_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	callq	_add_timer
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_USBREQ,4,2               ## @DEBUG_USBREQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-------> HD_READ_ATMESSAGE (%d)"

	.comm	_BS_ATRDPEND,4,2                ## @BS_ATRDPEND
L_.str.1:                               ## @.str.1
	.asciz	"could not submit HD_READ_ATMESSAGE: URB busy\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BS_SUSPEND,4,2                 ## @BS_SUSPEND
L_.str.2:                               ## @.str.2
	.asciz	"HD_READ_ATMESSAGE not submitted, suspend in progress\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IN_VENDOR_REQ,4,2              ## @IN_VENDOR_REQ
	.comm	_HD_READ_ATMESSAGE,4,2          ## @HD_READ_ATMESSAGE
	.comm	_read_ctrl_callback,4,2         ## @read_ctrl_callback
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.3:                               ## @.str.3
	.asciz	"could not submit HD_READ_ATMESSAGE: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"setting timeout of %d/10 secs"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_cmd_in_timeout,4,2             ## @cmd_in_timeout
	.no_dead_strip	_atread_submit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atread_submit
_atread_submit:                         ; @atread_submit
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x25, _DEBUG_USBREQ@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DEBUG_USBREQ@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w2, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gig_dbg
Lloh4:
	adrp	x26, _BS_ATRDPEND@GOTPAGE
Lloh5:
	ldr	x26, [x26, _BS_ATRDPEND@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	bl	_update_basstate
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh10:
	adrp	x8, _BS_SUSPEND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BS_SUSPEND@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_notice
	ldr	w2, [x26]
	mov	x0, x19
	mov	w1, #0
	bl	_update_basstate
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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
LBB0_6:
Lloh17:
	adrp	x8, _IN_VENDOR_REQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IN_VENDOR_REQ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _HD_READ_ATMESSAGE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HD_READ_ATMESSAGE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
	stp	xzr, xzr, [x19, #48]
	ldr	w0, [x19]
	bl	_cpu_to_le16
	mov	x22, x19
	str	w0, [x22, #40]!
	ldr	w23, [x19, #32]
	ldr	w24, [x19, #72]
	mov	x0, x24
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x2, x0
	ldr	w4, [x19, #36]
	ldr	w5, [x19]
Lloh23:
	adrp	x8, _read_ctrl_callback@GOTPAGE
Lloh24:
	ldr	x8, [x8, _read_ctrl_callback@GOTPAGEOFF]
Lloh25:
	ldr	w6, [x8]
	ldr	w7, [x20, #4]
	mov	x0, x23
	mov	x1, x24
	mov	x3, x22
	bl	_usb_fill_control_urb
	ldr	w0, [x19, #32]
Lloh26:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
	ldr	w2, [x26]
	mov	x0, x19
	mov	w1, #0
	bl	_update_basstate
	ldr	w19, [x20]
	mov	x0, x22
	bl	_get_usb_rcmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_8:
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	w0, [x25]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_gig_dbg
Lloh33:
	adrp	x8, _jiffies@GOTPAGE
Lloh34:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
Lloh36:
	adrp	x9, _HZ@GOTPAGE
Lloh37:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	mul	w9, w9, w21
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	str	x20, [x19, #8]!
	add	x8, x8, w9, sxtw
	str	x8, [x19, #16]
Lloh39:
	adrp	x8, _cmd_in_timeout@GOTPAGE
Lloh40:
	ldr	x8, [x8, _cmd_in_timeout@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_add_timer
LBB0_10:
	mov	w22, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_USBREQ,4,2               ; @DEBUG_USBREQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-------> HD_READ_ATMESSAGE (%d)"

	.comm	_BS_ATRDPEND,4,2                ; @BS_ATRDPEND
l_.str.1:                               ; @.str.1
	.asciz	"could not submit HD_READ_ATMESSAGE: URB busy\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BS_SUSPEND,4,2                 ; @BS_SUSPEND
l_.str.2:                               ; @.str.2
	.asciz	"HD_READ_ATMESSAGE not submitted, suspend in progress\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IN_VENDOR_REQ,4,2              ; @IN_VENDOR_REQ
	.comm	_HD_READ_ATMESSAGE,4,2          ; @HD_READ_ATMESSAGE
	.comm	_read_ctrl_callback,4,2         ; @read_ctrl_callback
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.3:                               ; @.str.3
	.asciz	"could not submit HD_READ_ATMESSAGE: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"setting timeout of %d/10 secs"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_cmd_in_timeout,4,2             ; @cmd_in_timeout
	.no_dead_strip	_atread_submit
.subsections_via_symbols
