	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function op32_fill_descriptor
_op32_fill_descriptor:                  ## @op32_fill_descriptor
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	subq	16(%rdi), %r15
	shrq	$4, %r15
	testl	%r15d, %r15d
	js	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	%r15d, (%r12)
	setle	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_B43legacy_WARN_ON
	subl	4(%r12), %ebx
	movq	_B43legacy_DMA32_DCTL_BYTECNT@GOTPCREL(%rip), %rcx
	movl	(%r12), %edx
	decl	%edx
	xorl	%eax, %eax
	cmpl	%r15d, %edx
	jne	LBB0_5
## %bb.4:
	movq	_B43legacy_DMA32_DCTL_DTABLEEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	andl	(%rcx), %ebx
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	movq	_B43legacy_DMA32_DCTL_FRAMESTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_7:
	orl	%r14d, %ebx
	movq	_SSB_DMA_TRANSLATION_MASK@GOTPCREL(%rip), %rcx
	movq	_SSB_DMA_TRANSLATION_SHIFT@GOTPCREL(%rip), %rsi
	movl	16(%rbp), %edx
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	movq	_B43legacy_DMA32_DCTL_FRAMEEND@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r13d
LBB0_9:
	orl	%r13d, %ebx
	movl	(%rcx), %edi
	movb	(%rsi), %cl
	movq	8(%r12), %rsi
	testl	%edx, %edx
	je	LBB0_11
## %bb.10:
	movq	_B43legacy_DMA32_DCTL_IRQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_11:
	orl	%edx, %ebx
	orl	%ebx, %eax
	movl	%edi, %ebx
	notl	%ebx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %ebx
	orl	(%rsi), %ebx
	andl	%edx, %edi
	sarl	%cl, %edi
	movq	_B43legacy_DMA32_DCTL_ADDREXT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	_B43legacy_DMA32_DCTL_ADDREXT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	orl	%eax, %edi
	callq	_cpu_to_le32
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSB_DMA_TRANSLATION_MASK,4,2   ## @SSB_DMA_TRANSLATION_MASK
	.comm	_SSB_DMA_TRANSLATION_SHIFT,4,2  ## @SSB_DMA_TRANSLATION_SHIFT
	.comm	_B43legacy_DMA32_DCTL_BYTECNT,4,2 ## @B43legacy_DMA32_DCTL_BYTECNT
	.comm	_B43legacy_DMA32_DCTL_DTABLEEND,4,2 ## @B43legacy_DMA32_DCTL_DTABLEEND
	.comm	_B43legacy_DMA32_DCTL_FRAMESTART,4,2 ## @B43legacy_DMA32_DCTL_FRAMESTART
	.comm	_B43legacy_DMA32_DCTL_FRAMEEND,4,2 ## @B43legacy_DMA32_DCTL_FRAMEEND
	.comm	_B43legacy_DMA32_DCTL_IRQ,4,2   ## @B43legacy_DMA32_DCTL_IRQ
	.comm	_B43legacy_DMA32_DCTL_ADDREXT_SHIFT,4,2 ## @B43legacy_DMA32_DCTL_ADDREXT_SHIFT
	.comm	_B43legacy_DMA32_DCTL_ADDREXT_MASK,4,2 ## @B43legacy_DMA32_DCTL_ADDREXT_MASK
	.no_dead_strip	_op32_fill_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function op32_fill_descriptor
_op32_fill_descriptor:                  ; @op32_fill_descriptor
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x19, x1
	mov	x25, x0
	ldr	x8, [x0, #16]
	sub	x8, x1, x8
	lsr	x26, x8, #4
	tbnz	w26, #31, LBB0_2
; %bb.1:
	ldr	w8, [x25]
	cmp	w8, w26
	cset	w0, le
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_B43legacy_WARN_ON
Lloh0:
	adrp	x8, _SSB_DMA_TRANSLATION_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSB_DMA_TRANSLATION_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SSB_DMA_TRANSLATION_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSB_DMA_TRANSLATION_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x10, [x25, #8]
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _B43legacy_DMA32_DCTL_BYTECNT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _B43legacy_DMA32_DCTL_BYTECNT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	ldp	w13, w12, [x25]
	sub	w12, w24, w12
	and	w11, w12, w11
Lloh9:
	adrp	x12, _B43legacy_DMA32_DCTL_DTABLEEND@GOTPAGE
Lloh10:
	ldr	x12, [x12, _B43legacy_DMA32_DCTL_DTABLEEND@GOTPAGEOFF]
	sub	w13, w13, #1
Lloh11:
	ldr	w12, [x12]
	cmp	w13, w26
	csel	w12, w12, wzr, eq
Lloh12:
	adrp	x13, _B43legacy_DMA32_DCTL_FRAMESTART@GOTPAGE
Lloh13:
	ldr	x13, [x13, _B43legacy_DMA32_DCTL_FRAMESTART@GOTPAGEOFF]
	orr	w11, w12, w11
Lloh14:
	ldr	w12, [x13]
	cmp	w23, #0
	csel	w12, wzr, w12, eq
Lloh15:
	adrp	x13, _B43legacy_DMA32_DCTL_FRAMEEND@GOTPAGE
Lloh16:
	ldr	x13, [x13, _B43legacy_DMA32_DCTL_FRAMEEND@GOTPAGEOFF]
	orr	w11, w11, w12
Lloh17:
	ldr	w12, [x13]
	cmp	w22, #0
	csel	w12, wzr, w12, eq
Lloh18:
	adrp	x13, _B43legacy_DMA32_DCTL_IRQ@GOTPAGE
Lloh19:
	ldr	x13, [x13, _B43legacy_DMA32_DCTL_IRQ@GOTPAGEOFF]
	orr	w11, w11, w12
Lloh20:
	ldr	w12, [x13]
	cmp	w21, #0
	csel	w12, wzr, w12, eq
	orr	w11, w11, w12
	bic	w12, w20, w8
	orr	w21, w10, w12
	and	w8, w8, w20
	asr	w8, w8, w9
Lloh21:
	adrp	x9, _B43legacy_DMA32_DCTL_ADDREXT_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _B43legacy_DMA32_DCTL_ADDREXT_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh24:
	adrp	x9, _B43legacy_DMA32_DCTL_ADDREXT_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _B43legacy_DMA32_DCTL_ADDREXT_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w8, w8, w9
	orr	w0, w11, w8
	bl	_cpu_to_le32
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_SSB_DMA_TRANSLATION_MASK,4,2   ; @SSB_DMA_TRANSLATION_MASK
	.comm	_SSB_DMA_TRANSLATION_SHIFT,4,2  ; @SSB_DMA_TRANSLATION_SHIFT
	.comm	_B43legacy_DMA32_DCTL_BYTECNT,4,2 ; @B43legacy_DMA32_DCTL_BYTECNT
	.comm	_B43legacy_DMA32_DCTL_DTABLEEND,4,2 ; @B43legacy_DMA32_DCTL_DTABLEEND
	.comm	_B43legacy_DMA32_DCTL_FRAMESTART,4,2 ; @B43legacy_DMA32_DCTL_FRAMESTART
	.comm	_B43legacy_DMA32_DCTL_FRAMEEND,4,2 ; @B43legacy_DMA32_DCTL_FRAMEEND
	.comm	_B43legacy_DMA32_DCTL_IRQ,4,2   ; @B43legacy_DMA32_DCTL_IRQ
	.comm	_B43legacy_DMA32_DCTL_ADDREXT_SHIFT,4,2 ; @B43legacy_DMA32_DCTL_ADDREXT_SHIFT
	.comm	_B43legacy_DMA32_DCTL_ADDREXT_MASK,4,2 ; @B43legacy_DMA32_DCTL_ADDREXT_MASK
	.no_dead_strip	_op32_fill_descriptor
.subsections_via_symbols
