	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_dma_init                   ## -- Begin function b43_dma_init
	.p2align	4, 0x90
_b43_dma_init:                          ## @b43_dma_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	%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	%rdi, %r13
	callq	_b43_engine_type
	movl	%eax, %r15d
	movq	8(%r13), %rax
	movl	16(%rax), %ebx
	movl	%r15d, %edi
	callq	_DMA_BIT_MASK
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_b43err
	jmp	LBB0_14
LBB0_2:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_b43_dma_translation_in_low_word
	movl	%eax, 72(%r13)
	movl	$1, 16(%r13)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	callq	_b43_setup_dmaring
	movq	%rax, 64(%r13)
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	leaq	16(%r13), %r12
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	callq	_b43_setup_dmaring
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%r13, %rdi
	movl	$2, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	callq	_b43_setup_dmaring
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%r13, %rdi
	movl	$3, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	callq	_b43_setup_dmaring
	movq	%rax, 40(%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	callq	_b43_setup_dmaring
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_b43_setup_dmaring
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	8(%r13), %rax
	xorl	%edi, %edi
	cmpl	$5, 4(%rax)
	setl	%dil
	callq	_B43_WARN_ON
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_b43dbg
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_9:
	movq	_tx_ring_mcast@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_destroy_ring
LBB0_10:
	movq	_tx_ring_AC_VO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_destroy_ring
LBB0_11:
	movq	_tx_ring_AC_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_destroy_ring
LBB0_12:
	movq	_tx_ring_AC_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_destroy_ring
LBB0_13:
	movq	_tx_ring_AC_BK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_destroy_ring
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The machine/kernel does not support the required %u-bit DMA mask\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"%u-bit DMA initialized\n"

	.comm	_tx_ring_mcast,4,2              ## @tx_ring_mcast
	.comm	_tx_ring_AC_VO,4,2              ## @tx_ring_AC_VO
	.comm	_tx_ring_AC_VI,4,2              ## @tx_ring_AC_VI
	.comm	_tx_ring_AC_BE,4,2              ## @tx_ring_AC_BE
	.comm	_tx_ring_AC_BK,4,2              ## @tx_ring_AC_BK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_dma_init                   ; -- Begin function b43_dma_init
	.p2align	2
_b43_dma_init:                          ; @b43_dma_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	x21, x0
	bl	_b43_engine_type
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	w19, [x8, #16]
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_b43err
	b	LBB0_14
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_b43_dma_translation_in_low_word
	str	w0, [x21, #72]
	mov	w8, #1
	str	w8, [x21, #16]
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	mov	x3, x20
	bl	_b43_setup_dmaring
	str	x0, [x21, #64]
	cbz	x0, LBB0_14
; %bb.3:
	add	x22, x21, #16
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	mov	x3, x20
	bl	_b43_setup_dmaring
	str	x0, [x21, #56]
	cbz	x0, LBB0_13
; %bb.4:
	mov	x0, x21
	mov	w1, #2
	mov	w2, #1
	mov	x3, x20
	bl	_b43_setup_dmaring
	str	x0, [x21, #48]
	cbz	x0, LBB0_12
; %bb.5:
	mov	x0, x21
	mov	w1, #3
	mov	w2, #1
	mov	x3, x20
	bl	_b43_setup_dmaring
	str	x0, [x21, #40]
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x21
	mov	w1, #4
	mov	w2, #1
	mov	x3, x20
	bl	_b43_setup_dmaring
	str	x0, [x21, #32]
	cbz	x0, LBB0_10
; %bb.7:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	x3, x20
	bl	_b43_setup_dmaring
	str	x0, [x21, #24]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #4]
	cmp	w8, #5
	cset	w0, lt
	bl	_B43_WARN_ON
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_b43dbg
	mov	w19, #0
	b	LBB0_14
LBB0_9:
Lloh7:
	adrp	x8, _tx_ring_mcast@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tx_ring_mcast@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_destroy_ring
LBB0_10:
Lloh10:
	adrp	x8, _tx_ring_AC_VO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tx_ring_AC_VO@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_destroy_ring
LBB0_11:
Lloh13:
	adrp	x8, _tx_ring_AC_VI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tx_ring_AC_VI@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_destroy_ring
LBB0_12:
Lloh16:
	adrp	x8, _tx_ring_AC_BE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tx_ring_AC_BE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_destroy_ring
LBB0_13:
Lloh19:
	adrp	x8, _tx_ring_AC_BK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tx_ring_AC_BK@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_destroy_ring
LBB0_14:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The machine/kernel does not support the required %u-bit DMA mask\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"%u-bit DMA initialized\n"

	.comm	_tx_ring_mcast,4,2              ; @tx_ring_mcast
	.comm	_tx_ring_AC_VO,4,2              ; @tx_ring_AC_VO
	.comm	_tx_ring_AC_VI,4,2              ; @tx_ring_AC_VI
	.comm	_tx_ring_AC_BE,4,2              ; @tx_ring_AC_BE
	.comm	_tx_ring_AC_BK,4,2              ; @tx_ring_AC_BK
.subsections_via_symbols
