	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_usb_tx                      ## -- Begin function zd_usb_tx
	.p2align	4, 0x90
_zd_usb_tx:                             ## @zd_usb_tx
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_zd_usb_to_usbdev
	movq	%rax, %r13
	leaq	8(%r12), %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	_EP_DATA_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_usb_sndbulkpipe
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movq	_tx_urb_complete@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r14, (%rsp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_skb_queue_tail
	leaq	4(%r12), %rsi
	movq	%r15, %rdi
	callq	_usb_anchor_urb
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_zd_usb_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_dev_dbg_f
	movq	%r15, %rdi
	callq	_usb_unanchor_urb
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_skb_unlink
	movq	%r15, %rdi
	callq	_usb_free_urb
	jmp	LBB0_7
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_tx_inc_submitted_urbs
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EP_DATA_OUT,4,2                ## @EP_DATA_OUT
	.comm	_tx_urb_complete,4,2            ## @tx_urb_complete
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error submit urb %p %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_usb_tx                      ; -- Begin function zd_usb_tx
	.p2align	2
_zd_usb_tx:                             ; @zd_usb_tx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	mov	x0, x19
	bl	_zd_usb_to_usbdev
	mov	x23, x0
	add	x0, x19, #8
	bl	_atomic_read
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x8, _EP_DATA_OUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EP_DATA_OUT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldp	w4, w3, [x20]
Lloh5:
	adrp	x8, _tx_urb_complete@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tx_urb_complete@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x23
	mov	x6, x20
	bl	_usb_fill_bulk_urb
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x22]
	str	x8, [x9, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_skb_queue_tail
	add	x1, x19, #4
	mov	x0, x21
	bl	_usb_anchor_urb
	ldr	w1, [x24]
	mov	x0, x21
	bl	_usb_submit_urb
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_zd_usb_dev
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_dev_dbg_f
	mov	x0, x21
	bl	_usb_unanchor_urb
	mov	x0, x20
	mov	x1, x19
	bl	_skb_unlink
	mov	x0, x21
	bl	_usb_free_urb
	b	LBB0_8
LBB0_4:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_tx_inc_submitted_urbs
LBB0_8:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EP_DATA_OUT,4,2                ; @EP_DATA_OUT
	.comm	_tx_urb_complete,4,2            ; @tx_urb_complete
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error submit urb %p %d\n"

.subsections_via_symbols
