	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_init_radio_regs        ## -- Begin function wlc_phy_init_radio_regs
	.p2align	4, 0x90
_wlc_phy_init_radio_regs:               ## @wlc_phy_init_radio_regs
	.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	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r15
	cmpl	$65535, 40(%rbx)                ## imm = 0xFFFF
	leaq	40(%rbx), %rbx
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_CHSPEC_IS5G
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 32(%rbx)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %esi
	orl	%r14d, %esi
	movl	24(%rbx), %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %esi
	orl	%r14d, %esi
	movl	8(%rbx), %edx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_write_radio_reg
	movq	%r12, %rdi
	callq	_ISNPHY
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%r13
	testb	$3, %r13b
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_BRCMS_PHY_WAR_PR51571
	jmp	LBB0_9
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_init_radio_regs        ; -- Begin function wlc_phy_init_radio_regs
	.p2align	2
_wlc_phy_init_radio_regs:               ; @wlc_phy_init_radio_regs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x21, #0
	mov	x23, #0
	mov	w24, #65535
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldr	w8, [x20, #40]!
	cmp	w8, w24
	b.eq	LBB0_10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_CHSPEC_IS5G
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	orr	w1, w8, w19
	ldr	w2, [x20, #24]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	orr	w1, w8, w19
	ldr	w2, [x20, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_write_radio_reg
	mov	x0, x22
	bl	_ISNPHY
	cbz	x0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	tst	x23, #0x3
	b.ne	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_BRCMS_PHY_WAR_PR51571
	b	LBB0_1
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
