	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_pio_init                   ## -- Begin function b43_pio_init
	.p2align	4, 0x90
_b43_pio_init:                          ## @b43_pio_init
	.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, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_b43_read32
	movq	_B43_MACCTL_BE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_b43_write32
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_SHM_SH_RXPADOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_b43_shm_write16
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_b43_setup_pioqueue_tx
	movq	%rax, 48(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	leaq	8(%r12), %r15
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_b43_setup_pioqueue_tx
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_b43_setup_pioqueue_tx
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_b43_setup_pioqueue_tx
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_b43_setup_pioqueue_tx
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_b43_setup_pioqueue_rx
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43dbg
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_7:
	movq	_tx_queue_mcast@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_destroy_queue_tx
LBB0_8:
	movq	_tx_queue_AC_VO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_destroy_queue_tx
LBB0_9:
	movq	_tx_queue_AC_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_destroy_queue_tx
LBB0_10:
	movq	_tx_queue_AC_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_destroy_queue_tx
LBB0_11:
	movq	_tx_queue_AC_BK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_destroy_queue_tx
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_B43_MMIO_MACCTL,4,2            ## @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_BE,4,2              ## @B43_MACCTL_BE
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.comm	_B43_SHM_SH_RXPADOFF,4,2        ## @B43_SHM_SH_RXPADOFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PIO initialized\n"

	.comm	_tx_queue_mcast,4,2             ## @tx_queue_mcast
	.comm	_tx_queue_AC_VO,4,2             ## @tx_queue_AC_VO
	.comm	_tx_queue_AC_VI,4,2             ## @tx_queue_AC_VI
	.comm	_tx_queue_AC_BE,4,2             ## @tx_queue_AC_BE
	.comm	_tx_queue_AC_BK,4,2             ## @tx_queue_AC_BK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_pio_init                   ; -- Begin function b43_pio_init
	.p2align	2
_b43_pio_init:                          ; @b43_pio_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
Lloh3:
	adrp	x8, _B43_MMIO_MACCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_MMIO_MACCTL@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x1, x21
	bl	_b43_read32
Lloh6:
	adrp	x8, _B43_MACCTL_BE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_MACCTL_BE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x20
	mov	x1, x21
	bl	_b43_write32
Lloh9:
	adrp	x8, _B43_SHM_SHARED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_SHM_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _B43_SHM_SH_RXPADOFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B43_SHM_SH_RXPADOFF@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_b43_shm_write16
	mov	x0, x20
	mov	w1, #0
	bl	_b43_setup_pioqueue_tx
	str	x0, [x20, #48]
	cbz	x0, LBB0_12
; %bb.1:
	add	x21, x20, #8
	mov	x0, x20
	mov	w1, #1
	bl	_b43_setup_pioqueue_tx
	str	x0, [x20, #40]
	cbz	x0, LBB0_11
; %bb.2:
	mov	x0, x20
	mov	w1, #2
	bl	_b43_setup_pioqueue_tx
	str	x0, [x20, #32]
	cbz	x0, LBB0_10
; %bb.3:
	mov	x0, x20
	mov	w1, #3
	bl	_b43_setup_pioqueue_tx
	str	x0, [x20, #24]
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x20
	mov	w1, #4
	bl	_b43_setup_pioqueue_tx
	str	x0, [x20, #16]
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	bl	_b43_setup_pioqueue_rx
	str	w0, [x20, #8]
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x20]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43dbg
	mov	w19, #0
	b	LBB0_12
LBB0_7:
Lloh17:
	adrp	x8, _tx_queue_mcast@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tx_queue_mcast@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_destroy_queue_tx
LBB0_8:
Lloh20:
	adrp	x8, _tx_queue_AC_VO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tx_queue_AC_VO@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_destroy_queue_tx
LBB0_9:
Lloh23:
	adrp	x8, _tx_queue_AC_VI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tx_queue_AC_VI@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_destroy_queue_tx
LBB0_10:
Lloh26:
	adrp	x8, _tx_queue_AC_BE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _tx_queue_AC_BE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_destroy_queue_tx
LBB0_11:
Lloh29:
	adrp	x8, _tx_queue_AC_BK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tx_queue_AC_BK@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_destroy_queue_tx
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_B43_MMIO_MACCTL,4,2            ; @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_BE,4,2              ; @B43_MACCTL_BE
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.comm	_B43_SHM_SH_RXPADOFF,4,2        ; @B43_SHM_SH_RXPADOFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIO initialized\n"

	.comm	_tx_queue_mcast,4,2             ; @tx_queue_mcast
	.comm	_tx_queue_AC_VO,4,2             ; @tx_queue_AC_VO
	.comm	_tx_queue_AC_VI,4,2             ; @tx_queue_AC_VI
	.comm	_tx_queue_AC_BE,4,2             ; @tx_queue_AC_BE
	.comm	_tx_queue_AC_BK,4,2             ; @tx_queue_AC_BK
.subsections_via_symbols
