	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_init_rf_banks_0_7
_carl9170_init_rf_banks_0_7:            ## @carl9170_init_rf_banks_0_7
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_carl9170_regwrite_begin
	movq	_carl9170_rf_initval@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	$4, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	leaq	(%rax,%rbx), %rcx
	testl	%r15d, %r15d
	movl	4(%rax,%rbx), %edi
	leaq	-4(%rax,%rbx), %rax
	cmovneq	%rcx, %rax
	movl	(%rax), %esi
	callq	_carl9170_regwrite
	incq	%r13
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_carl9170_regwrite_finish
	xorl	%eax, %eax
	callq	_carl9170_regwrite_result
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_carl9170_rf_initval,8,3        ## @carl9170_rf_initval
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rf init failed\n"

	.no_dead_strip	_carl9170_init_rf_banks_0_7
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_init_rf_banks_0_7
_carl9170_init_rf_banks_0_7:            ; @carl9170_init_rf_banks_0_7
	.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, x1
	mov	x19, x0
	bl	_carl9170_regwrite_begin
Lloh0:
	adrp	x21, _carl9170_rf_initval@GOTPAGE
Lloh1:
	ldr	x21, [x21, _carl9170_rf_initval@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	w23, #8
	mov	x24, #-4
	mov	x25, #-8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x23
	ldr	w0, [x8]
	cmp	w20, #0
	csel	x9, x25, x24, eq
	ldr	w1, [x8, x9]
	bl	_carl9170_regwrite
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	x23, x23, #12
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	bl	_carl9170_regwrite_finish
	bl	_carl9170_regwrite_result
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_carl9170_rf_initval,8,3        ; @carl9170_rf_initval
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rf init failed\n"

	.no_dead_strip	_carl9170_init_rf_banks_0_7
.subsections_via_symbols
