	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_setup_pioqueue_tx
_b43_setup_pioqueue_tx:                 ## @b43_setup_pioqueue_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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	%r12, 40(%r14)
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_index_to_pioqueue_base
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_pio_txqueue_offset
	addq	%r13, %rax
	movq	%rax, 32(%r14)
	movl	%ebx, 4(%r14)
	movq	_B43_PIO_MAX_NR_TXPACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	$1920, %eax                     ## imm = 0x780
	cmpl	$7, (%r14)
	jg	LBB0_3
## %bb.2:
	movq	_B43_PIO_TXQBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_piotx_read16
	addl	$-80, %eax
LBB0_3:
	movl	%eax, 8(%r14)
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	16(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	$4, %ebx
	xorl	%r13d, %r13d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r15
	leaq	(%r15,%rbx), %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movl	%r13d, -4(%r15,%rbx)
	movq	%r14, 4(%r15,%rbx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_list_add
	incq	%r13
	movq	16(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jb	LBB0_5
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_B43_PIO_MAX_NR_TXPACKETS,4,2   ## @B43_PIO_MAX_NR_TXPACKETS
	.comm	_B43_PIO_TXQBUFSIZE,4,2         ## @B43_PIO_TXQBUFSIZE
	.no_dead_strip	_b43_setup_pioqueue_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_setup_pioqueue_tx
_b43_setup_pioqueue_tx:                 ; @b43_setup_pioqueue_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	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	str	x21, [x19, #40]
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_index_to_pioqueue_base
	mov	x22, x0
	mov	x0, x21
	bl	_pio_txqueue_offset
	add	x8, x0, x22
	str	x8, [x19, #32]
	str	w20, [x19, #4]
Lloh3:
	adrp	x8, _B43_PIO_MAX_NR_TXPACKETS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_PIO_MAX_NR_TXPACKETS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w8, [x19]
	cmp	w8, #7
	b.le	LBB0_3
; %bb.2:
	mov	w8, #1920
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _B43_PIO_TXQBUFSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_PIO_TXQBUFSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_piotx_read16
	sub	w8, w0, #80
LBB0_4:
	str	w8, [x19, #8]
	add	x20, x19, #12
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.5:
	mov	x22, #0
	mov	x23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x24, x8, x22
	add	x21, x24, #4
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	str	w23, [x24]
	str	x19, [x24, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_list_add
	add	x23, x23, #1
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	add	x22, x22, #16
	cmp	x23, w0, uxtw
	b.lo	LBB0_6
LBB0_7:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_B43_PIO_MAX_NR_TXPACKETS,4,2   ; @B43_PIO_MAX_NR_TXPACKETS
	.comm	_B43_PIO_TXQBUFSIZE,4,2         ; @B43_PIO_TXQBUFSIZE
	.no_dead_strip	_b43_setup_pioqueue_tx
.subsections_via_symbols
