	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_packet
_send_packet:                           ## @send_packet
	.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, %rbx
	cmpl	$0, 48(%rdi)
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movabsq	$38654705697, %rax              ## imm = 0x900000021
	movq	%rax, (%r14)
	movl	$512, %edi                      ## imm = 0x200
	callq	_cpu_to_le16
	movq	%rax, 24(%r14)
	movl	$1, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movl	$8, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movl	36(%rbx), %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	24(%rbx), %rdi
	movl	36(%rbx), %esi
	movl	32(%rbx), %r8d
	movq	_usb_tx_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	%eax, %edx
	movq	%r14, %rcx
	movl	$4, %r9d
	pushq	%rbx
	pushq	%r10
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	jmp	LBB0_5
LBB0_1:
	movl	36(%rbx), %edi
	movq	40(%rbx), %rax
	movl	4(%rax), %esi
	callq	_usb_sndintpipe
	movq	40(%rbx), %rcx
	movl	(%rcx), %r10d
	movq	24(%rbx), %rdi
	movl	36(%rbx), %esi
	movl	32(%rbx), %ecx
	movq	_usb_tx_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	%eax, %edx
	movl	$4, %r8d
	pushq	%r10
	pushq	%rbx
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	xorl	%r14d, %r14d
LBB0_5:
	movq	24(%rbx), %rax
	movq	$0, (%rax)
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_reinit_completion
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	24(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movl	$0, 4(%rbx)
	xorl	%eax, %eax
	callq	_smp_rmb
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_12
LBB0_7:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_wait_for_completion_interruptible
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	24(%rbx), %rdi
	callq	_usb_kill_urb
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err_ratelimited
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	8(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
LBB0_12:
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_err_ratelimited
LBB0_13:
	movq	%r14, %rdi
	callq	_kfree
	movl	(%rbx), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%rbx, %rdi
	callq	_schedule_timeout
	jmp	LBB0_14
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_usb_tx_callback,4,2            ## @usb_tx_callback
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error submitting urb(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"task interrupted\n"

L_.str.2:                               ## @.str.2
	.asciz	"packet tx failed (%d)\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.no_dead_strip	_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function send_packet
lCPI0_0:
	.long	33                              ; 0x21
	.long	9                               ; 0x9
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_send_packet:                           ; @send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #48]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w1, [x21]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	mov	w0, #512
	bl	_cpu_to_le16
	str	x0, [x20, #24]
	mov	w0, #1
	bl	_cpu_to_le16
	str	x0, [x20, #16]
	mov	w0, #8
	bl	_cpu_to_le16
	str	x0, [x20, #8]
	ldr	w0, [x19, #36]
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x2, x0
	ldr	x0, [x19, #24]
	ldp	w4, w1, [x19, #32]
Lloh4:
	adrp	x8, _usb_tx_callback@GOTPAGE
Lloh5:
	ldr	x8, [x8, _usb_tx_callback@GOTPAGEOFF]
Lloh6:
	ldr	w6, [x8]
	mov	x3, x20
	mov	w5, #4
	mov	x7, x19
	bl	_usb_fill_control_urb
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #36]
	ldr	x8, [x19, #40]
	ldr	w1, [x8, #4]
	bl	_usb_sndintpipe
	mov	x2, x0
	ldr	x8, [x19, #40]
	ldr	w7, [x8]
	ldr	x0, [x19, #24]
	ldp	w3, w1, [x19, #32]
Lloh7:
	adrp	x8, _usb_tx_callback@GOTPAGE
Lloh8:
	ldr	x8, [x8, _usb_tx_callback@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	mov	w4, #4
	mov	x6, x19
	bl	_usb_fill_int_urb
	mov	x20, #0
LBB0_4:
	ldr	x8, [x19, #24]
	str	xzr, [x8]
	add	x22, x19, #12
	mov	x0, x22
	bl	_reinit_completion
	mov	w8, #1
	str	w8, [x19, #4]
	bl	_smp_rmb
	ldr	x0, [x19, #24]
	ldr	w1, [x21]
	bl	_usb_submit_urb
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
	str	wzr, [x19, #4]
	bl	_smp_rmb
	str	x21, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err_ratelimited
	b	LBB0_10
LBB0_6:
	add	x21, x19, #16
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x22
	bl	_wait_for_completion_interruptible
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19, #24]
	bl	_usb_kill_urb
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err_ratelimited
LBB0_8:
	mov	x0, x21
	bl	_mutex_lock
	ldr	w21, [x19, #8]
	cbz	w21, LBB0_10
; %bb.9:
	str	x21, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err_ratelimited
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_10:
	mov	x0, x20
	bl	_kfree
	ldr	w0, [x19]
	bl	_msecs_to_jiffies
	mov	x19, x0
Lloh16:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x19
	bl	_schedule_timeout
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_usb_tx_callback,4,2            ; @usb_tx_callback
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error submitting urb(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"task interrupted\n"

l_.str.2:                               ; @.str.2
	.asciz	"packet tx failed (%d)\n"

	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.no_dead_strip	_send_packet
.subsections_via_symbols
