	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_eject_command
_send_eject_command:                    ## @send_eject_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_interface_to_usbdev
	movq	(%r15), %rbx
	cmpl	$2, 8(%rbx)
	jl	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movq	(%rbx), %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_usb_endpoint_dir_out
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_usb_endpoint_xfer_bulk
	testq	%rax, %rax
	jne	LBB0_6
LBB0_3:
	movq	(%rbx), %r12
	movq	%r12, %rdi
	callq	_usb_endpoint_dir_out
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_usb_endpoint_xfer_bulk
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movl	(%r12), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$31, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movl	$1128420181, (%rax)             ## imm = 0x43425355
	movw	$6918, 14(%rax)                 ## imm = 0x1B06
	movb	$2, 19(%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_usb_sndbulkpipe
	movq	_USB_MSG_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	addl	%r9d, %r9d
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	movl	$31, %ecx
	xorl	%r8d, %r8d
	callq	_usb_bulk_msg
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ath9k_htc: Could not find bulk out endpoint\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Ejecting storage device...\n"

	.comm	_USB_MSG_TIMEOUT,4,2            ## @USB_MSG_TIMEOUT
	.no_dead_strip	_send_eject_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_eject_command
_send_eject_command:                    ; @send_eject_command
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_interface_to_usbdev
	ldr	x22, [x19]
	ldr	w8, [x22, #8]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	x8, [x22]
	add	x21, x8, #4
	mov	x0, x21
	bl	_usb_endpoint_dir_out
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_usb_endpoint_xfer_bulk
	cbnz	x0, LBB0_5
LBB0_3:
	ldr	x21, [x22]
	mov	x0, x21
	bl	_usb_endpoint_dir_out
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_usb_endpoint_xfer_bulk
	cbz	x0, LBB0_8
LBB0_5:
	ldr	w22, [x21]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #31
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	mov	w8, #21333
	movk	w8, #17218, lsl #16
	str	w8, [x0]
	mov	w8, #6918
	strh	w8, [x0, #14]
	mov	w8, #2
	strb	w8, [x0, #19]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	x0, x20
	mov	x1, x22
	bl	_usb_sndbulkpipe
	mov	x1, x0
Lloh5:
	adrp	x8, _USB_MSG_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_MSG_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w5, w8, #1
	mov	x0, x20
	mov	x2, x21
	mov	w3, #31
	mov	x4, #0
	bl	_usb_bulk_msg
	mov	x20, x0
	mov	x0, x21
	bl	_kfree
	cbnz	w20, LBB0_10
; %bb.7:
	mov	x0, x19
	mov	x1, #0
	bl	_usb_set_intfdata
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_9:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ath9k_htc: Could not find bulk out endpoint\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Ejecting storage device...\n"

	.comm	_USB_MSG_TIMEOUT,4,2            ; @USB_MSG_TIMEOUT
	.no_dead_strip	_send_eject_command
.subsections_via_symbols
