	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_pio_tx                     ## -- Begin function b43_pio_tx
	.p2align	4, 0x90
_b43_pio_tx:                            ## @b43_pio_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	_IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rbx
	movq	8(%r14), %r15
	movq	_IEEE80211_FCTL_MOREDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_skb_get_queue_mapping
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_select_queue_by_priority
	movq	%rax, %r15
LBB0_3:
	movq	%r14, %rdi
	callq	_b43_txhdr_size
	addl	(%r12), %eax
	movl	%eax, %edi
	movl	$4, %esi
	callq	_roundup
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_b43dbg
	jmp	LBB0_16
LBB0_5:
	xorl	%edi, %edi
	cmpq	$0, 8(%r15)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_b43warn
	jmp	LBB0_16
LBB0_7:
	movl	16(%r15), %eax
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	seta	%dil
	callq	_B43_WARN_ON
	movl	(%r15), %eax
	subl	16(%r15), %eax
	cmpl	%eax, %ebx
	jbe	LBB0_9
## %bb.8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	(%r14), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_skb_get_queue_mapping
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ieee80211_stop_queue
	movl	$1, 20(%r15)
	jmp	LBB0_16
LBB0_9:
	movq	%r12, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, 24(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_pio_tx_frame
	movl	%eax, %ebx
	movq	_ENOKEY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%ebx, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_ieee80211_free_txskb
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_11:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_b43err
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	16(%r15), %eax
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	seta	%dil
	callq	_B43_WARN_ON
	movl	(%r15), %r13d
	subl	16(%r15), %r13d
	movl	$10, %edi
	movl	$4, %esi
	callq	_roundup
	cmpl	%eax, %r13d
	jb	LBB0_15
## %bb.14:
	cmpq	$0, 8(%r15)
	jne	LBB0_16
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_CTL_SEND_AFTER_DTIM,4,2 ## @IEEE80211_TX_CTL_SEND_AFTER_DTIM
	.comm	_IEEE80211_FCTL_MOREDATA,4,2    ## @IEEE80211_FCTL_MOREDATA
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PIO: TX packet longer than queue.\n"

L_.str.1:                               ## @.str.1
	.asciz	"PIO: TX packet overflow.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOKEY,4,2                     ## @ENOKEY
L_.str.2:                               ## @.str.2
	.asciz	"PIO transmission failure\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_pio_tx                     ; -- Begin function b43_pio_tx
	.p2align	2
_b43_pio_tx:                            ; @b43_pio_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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x22, [x20, #8]
	ldr	x21, [x19, #8]
Lloh3:
	adrp	x8, _IEEE80211_FCTL_MOREDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_FCTL_MOREDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	w8, [x22]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_skb_get_queue_mapping
	mov	x1, x0
	mov	x0, x19
	bl	_select_queue_by_priority
	mov	x21, x0
LBB0_3:
	mov	x0, x19
	bl	_b43_txhdr_size
	ldr	w8, [x20]
	add	w0, w8, w0
	mov	w1, #4
	bl	_roundup
	mov	x22, x0
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43dbg
	b	LBB0_14
LBB0_5:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	x0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_b43warn
	b	LBB0_14
LBB0_7:
	ldr	w8, [x21, #16]
	ldr	w9, [x21]
	cmp	w8, w9
	cset	w0, hi
	bl	_B43_WARN_ON
	ldr	w8, [x21]
	ldr	w9, [x21, #16]
	sub	w8, w8, w9
	cmp	w22, w8
	b.ls	LBB0_10
; %bb.8:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	ldr	x8, [x19]
	ldr	w19, [x8]
	mov	x0, x20
	bl	_skb_get_queue_mapping
	mov	x1, x0
	mov	x0, x19
	bl	_ieee80211_stop_queue
	mov	w8, #1
	str	w8, [x21, #20]
	b	LBB0_14
LBB0_10:
	mov	x0, x20
	bl	_skb_get_queue_mapping
	str	w0, [x21, #24]
	mov	x0, x21
	mov	x1, x20
	bl	_pio_tx_frame
	mov	x22, x0
Lloh19:
	adrp	x8, _ENOKEY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOKEY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ieee80211_free_txskb
	mov	w22, #0
	b	LBB0_14
LBB0_12:
	mov	x0, x22
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x0, [x19]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_b43err
LBB0_14:
	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
LBB0_15:
	ldr	w8, [x21, #16]
	ldr	w9, [x21]
	cmp	w8, w9
	cset	w0, hi
	bl	_B43_WARN_ON
	ldr	w8, [x21]
	ldr	w9, [x21, #16]
	sub	w23, w8, w9
	mov	w0, #10
	mov	w1, #4
	bl	_roundup
	cmp	w23, w0
	b.lo	LBB0_9
; %bb.16:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_14
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_CTL_SEND_AFTER_DTIM,4,2 ; @IEEE80211_TX_CTL_SEND_AFTER_DTIM
	.comm	_IEEE80211_FCTL_MOREDATA,4,2    ; @IEEE80211_FCTL_MOREDATA
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIO: TX packet longer than queue.\n"

l_.str.1:                               ; @.str.1
	.asciz	"PIO: TX packet overflow.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOKEY,4,2                     ; @ENOKEY
l_.str.2:                               ; @.str.2
	.asciz	"PIO transmission failure\n"

.subsections_via_symbols
