	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_fastreg
_build_fastreg:                         ## @build_fastreg
	.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
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdx), %edi
	shll	$2, %edi
	movl	$32, %esi
	callq	_roundup
	movl	%eax, %r12d
	movl	(%r13), %eax
	movq	_T4_MAX_FR_DEPTH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 56(%rbx)
	movq	32(%r13), %rax
	addq	$-12, %rax
	movq	%rax, 48(%rbx)
	movq	_FW_RI_VA_BASED_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	24(%r13), %edi
	callq	_c4iw_ib_to_tpt_access
	movl	%eax, 40(%rbx)
	movq	$0, 32(%rbx)
	movl	4(%r13), %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%rbx)
	movl	8(%r13), %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%rbx)
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movl	12(%r13), %edi
	callq	_cpu_to_be32
	movq	%rax, (%rbx)
	movq	_T4_MAX_FR_IMMD@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r12d
	setg	%dil
	callq	_WARN_ON
	movq	_FW_RI_DATA_IMMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rbx)
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, 64(%rbx)
	addq	$96, %rbx
	cmpl	$0, (%r13)
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	callq	_cpu_to_be64
	movq	%rax, (%rbx)
	addl	$-8, %r12d
	addq	$8, %rbx
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	leaq	(%rcx,%rax,4), %rax
	cmpq	%rax, %rbx
	cmoveq	%rcx, %rbx
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	movl	%r12d, %edi
	shrl	$31, %edi
	callq	_BUG_ON
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.6:
	movq	8(%r15), %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rbx)
	addq	$8, %rbx
	movq	(%r15), %rcx
	leaq	(%rax,%rcx,4), %rcx
	cmpq	%rcx, %rbx
	cmoveq	%rax, %rbx
	addl	$-8, %r12d
	jne	LBB0_7
LBB0_8:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addl	$96, %edi
	movl	$16, %esi
	callq	_DIV_ROUND_UP
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T4_MAX_FR_DEPTH,4,2            ## @T4_MAX_FR_DEPTH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FW_RI_VA_BASED_TO,4,2          ## @FW_RI_VA_BASED_TO
	.comm	_T4_MAX_FR_IMMD,4,2             ## @T4_MAX_FR_IMMD
	.comm	_FW_RI_DATA_IMMD,4,2            ## @FW_RI_DATA_IMMD
	.no_dead_strip	_build_fastreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_fastreg
_build_fastreg:                         ; @build_fastreg
	.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	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w8, [x2]
	lsl	w0, w8, #2
	mov	w1, #32
	bl	_roundup
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _T4_MAX_FR_DEPTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _T4_MAX_FR_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	mov	x21, x0
	str	xzr, [x23, #56]
	ldr	x8, [x22, #32]
	sub	x8, x8, #12
	str	x8, [x23, #48]
Lloh6:
	adrp	x8, _FW_RI_VA_BASED_TO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_RI_VA_BASED_TO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x23, #44]
	ldr	w0, [x22, #24]
	bl	_c4iw_ib_to_tpt_access
	str	w0, [x23, #40]
	str	xzr, [x23, #32]
	ldr	w0, [x22, #4]
	bl	_cpu_to_be32
	str	x0, [x23, #24]
	ldr	w0, [x22, #8]
	bl	_cpu_to_be32
	str	x0, [x23, #16]
	bl	_cpu_to_be32
	str	x0, [x23, #8]
	ldr	w0, [x22, #12]
	bl	_cpu_to_be32
	str	x0, [x23]
Lloh9:
	adrp	x8, _T4_MAX_FR_IMMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _T4_MAX_FR_IMMD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, gt
	bl	_WARN_ON
Lloh12:
	adrp	x8, _FW_RI_DATA_IMMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_RI_DATA_IMMD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x23, #88]
	stp	xzr, xzr, [x23, #72]
	mov	x0, x21
	bl	_cpu_to_be32
	str	x0, [x23, #64]
	add	x23, x23, #96
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x25, #0
	mov	x24, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	ldr	w0, [x8, x25, lsl #2]
	bl	_cpu_to_be64
	str	x0, [x23], #8
	sub	w24, w24, #8
	ldp	x9, x8, [x20]
	add	x9, x8, x9, lsl #2
	cmp	x23, x9
	csel	x23, x8, x23, eq
	add	x25, x25, #1
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.lt	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x24, x21
LBB0_6:
	lsr	w0, w24, #31
	bl	_BUG_ON
	cbz	w24, LBB0_9
; %bb.7:
	ldr	x8, [x20, #8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x23], #8
	ldr	x9, [x20]
	add	x9, x8, x9, lsl #2
	cmp	x23, x9
	csel	x23, x8, x23, eq
	sub	w24, w24, #8
	cbnz	w24, LBB0_8
LBB0_9:
	add	w0, w21, #96
	mov	w1, #16
	bl	_DIV_ROUND_UP
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_T4_MAX_FR_DEPTH,4,2            ; @T4_MAX_FR_DEPTH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FW_RI_VA_BASED_TO,4,2          ; @FW_RI_VA_BASED_TO
	.comm	_T4_MAX_FR_IMMD,4,2             ; @T4_MAX_FR_IMMD
	.comm	_FW_RI_DATA_IMMD,4,2            ; @FW_RI_DATA_IMMD
	.no_dead_strip	_build_fastreg
.subsections_via_symbols
