	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_write_initvals
_b43_write_initvals:                    ## @b43_write_initvals
	.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	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	$1, %edi
	callq	_BUILD_BUG_ON
	testq	%r15, %r15
	je	LBB0_11
## %bb.1:
	leaq	(,%r15,8), %rax
	movq	%r12, %rcx
	subq	%rax, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addq	$4, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$4, %rcx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%r13), %edi
	callq	_be16_to_cpu
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_b43_write16
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$-8, %r12
	addq	$32, %r13
	decq	%r15
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$4, %r12
	jb	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edi
	callq	_be16_to_cpu
	movq	_B43_IV_OFFSET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	cmpl	$4095, %ebx                     ## imm = 0xFFF
	jg	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rcx
	andq	$-4, %rcx
	movq	_B43_IV_32BIT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$4, %rcx
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_get_unaligned_be32
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_b43_write32
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_11:
	testq	%r12, %r12
	je	LBB0_12
LBB0_13:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_b43_print_fw_helptext
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_IV_32BIT,4,2               ## @B43_IV_32BIT
	.comm	_B43_IV_OFFSET_MASK,4,2         ## @B43_IV_OFFSET_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initial Values Firmware file-format error.\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_b43_write_initvals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_write_initvals
_b43_write_initvals:                    ; @b43_write_initvals
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w0, #1
	bl	_BUILD_BUG_ON
	cbz	x21, LBB0_11
; %bb.1:
	add	x22, x22, #4
Lloh0:
	adrp	x24, _B43_IV_OFFSET_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _B43_IV_OFFSET_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _B43_IV_32BIT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _B43_IV_32BIT@GOTPAGEOFF]
	sub	x25, x20, x21, lsl #3
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x8, #4
	b.eq	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x22, #-4]
	bl	_be16_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_b43_write16
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x20, x20, #8
	add	x22, x22, #32
	subs	x21, x21, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, #4
	b.lo	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #4]
	bl	_be16_to_cpu
	ldr	w8, [x24]
	and	w23, w8, w0
	cmp	w23, #4095
	b.gt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x26]
	and	x8, x20, #0xfffffffffffffffc
	tst	w9, w0
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x8, #4
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_get_unaligned_be32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_b43_write32
	b	LBB0_4
LBB0_10:
	mov	x20, x25
LBB0_11:
	cbz	x20, LBB0_14
LBB0_12:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
	ldr	w0, [x19]
	mov	w1, #1
	bl	_b43_print_fw_helptext
Lloh6:
	adrp	x8, _EPROTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
LBB0_14:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_IV_32BIT,4,2               ; @B43_IV_32BIT
	.comm	_B43_IV_OFFSET_MASK,4,2         ; @B43_IV_OFFSET_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initial Values Firmware file-format error.\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_b43_write_initvals
.subsections_via_symbols
