	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_mac_tx_to_dev               ## -- Begin function zd_mac_tx_to_dev
	.p2align	4, 0x90
_zd_mac_tx_to_dev:                      ## @zd_mac_tx_to_dev
	.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
	pushq	%rax
	.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, %r15
	callq	_IEEE80211_SKB_CB
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_zd_hw_mac
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ieee80211_tx_info_clear_status
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movl	$1, %edi
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	testl	%eax, (%rbx)
	setne	%dil
LBB0_2:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_tx_status_irqsafe    ## TAILCALL
LBB0_3:
	leaq	12(%r12), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_skb_queue_tail
	movq	%rbx, %rdi
	callq	_skb_queue_len
	movq	_ZD_MAC_MAX_ACK_WAITERS@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_zd_mac_tx_status
	movq	$0, (%r12)
	movq	%rbx, %rdi
	callq	_skb_queue_len
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r15), %rax
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_skb_dequeue
	cmpq	$0, (%r12)
	movl	$0, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %edx
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_ZD_MAC_MAX_ACK_WAITERS,8,3     ## @ZD_MAC_MAX_ACK_WAITERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zd_mac_tx_to_dev               ; -- Begin function zd_mac_tx_to_dev
	.p2align	2
_zd_mac_tx_to_dev:                      ; @zd_mac_tx_to_dev
	.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	x23, x1
	mov	x22, x0
	bl	_IEEE80211_SKB_CB
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_zd_hw_mac
	mov	x20, x0
	mov	x0, x21
	bl	_ieee80211_tx_info_clear_status
	mov	x0, x22
	mov	w1, #4
	bl	_skb_pull
	cbz	w23, LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, 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
	b	_ieee80211_tx_status_irqsafe
LBB0_3:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_4:
	add	x21, x20, #12
	mov	x0, x21
	mov	x1, x22
	bl	_skb_queue_tail
	mov	x0, x21
	bl	_skb_queue_len
Lloh3:
	adrp	x22, _ZD_MAC_MAX_ACK_WAITERS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ZD_MAC_MAX_ACK_WAITERS@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x20, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x3, #0
	bl	_zd_mac_tx_status
	str	xzr, [x20]
	mov	x0, x21
	bl	_skb_queue_len
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x0, x8
	b.le	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_skb_dequeue
	mov	x1, x0
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w2, #0
	b	LBB0_6
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_ZD_MAC_MAX_ACK_WAITERS,8,3     ; @ZD_MAC_MAX_ACK_WAITERS
.subsections_via_symbols
