	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_mhfdef
_brcms_c_mhfdef:                        ## @brcms_c_mhfdef
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	movq	_MHFMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_MHF2@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	orl	%r14d, (%r12,%rax,4)
	movq	_BFL_NOPLLDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_MHF1_FORCEFASTCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MHF1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%r12,%rcx,4)
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_BRCMS_ISNPHY
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_NREV_LT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MHF2_NPHY40MHZ_WAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	orl	%eax, (%r12,%rcx,4)
	movq	_MHF1_IQSWAP_WAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MHF1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%r12,%rcx,4)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MHFMAX,4,2                     ## @MHFMAX
	.comm	_MHF2,8,3                       ## @MHF2
	.comm	_BFL_NOPLLDOWN,4,2              ## @BFL_NOPLLDOWN
	.comm	_MHF1_FORCEFASTCLK,4,2          ## @MHF1_FORCEFASTCLK
	.comm	_MHF1,8,3                       ## @MHF1
	.comm	_MHF2_NPHY40MHZ_WAR,4,2         ## @MHF2_NPHY40MHZ_WAR
	.comm	_MHF1_IQSWAP_WAR,4,2            ## @MHF1_IQSWAP_WAR
	.no_dead_strip	_brcms_c_mhfdef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_mhfdef
_brcms_c_mhfdef:                        ; @brcms_c_mhfdef
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _MHFMAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MHFMAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	x0, x1
	mov	w1, #0
	bl	_memset
Lloh3:
	adrp	x21, _MHF2@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MHF2@GOTPAGEOFF]
	ldr	x8, [x21]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	orr	w9, w9, w20
	str	w9, [x19, x8]
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _BFL_NOPLLDOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BFL_NOPLLDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x20, _MHF1@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MHF1@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _MHF1_FORCEFASTCLK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MHF1_FORCEFASTCLK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x20]
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	orr	w8, w10, w8
	str	w8, [x19, x9]
LBB0_2:
	ldr	x0, [x22, #8]
	bl	_BRCMS_ISNPHY
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	mov	w1, #2
	bl	_NREV_LT
	cbz	x0, LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _MHF2_NPHY40MHZ_WAR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MHF2_NPHY40MHZ_WAR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x21]
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	orr	w8, w10, w8
	str	w8, [x19, x9]
Lloh16:
	adrp	x8, _MHF1_IQSWAP_WAR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MHF1_IQSWAP_WAR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	x9, [x20]
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	orr	w8, w10, w8
	str	w8, [x19, x9]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MHFMAX,4,2                     ; @MHFMAX
	.comm	_MHF2,8,3                       ; @MHF2
	.comm	_BFL_NOPLLDOWN,4,2              ; @BFL_NOPLLDOWN
	.comm	_MHF1_FORCEFASTCLK,4,2          ; @MHF1_FORCEFASTCLK
	.comm	_MHF1,8,3                       ; @MHF1
	.comm	_MHF2_NPHY40MHZ_WAR,4,2         ; @MHF2_NPHY40MHZ_WAR
	.comm	_MHF1_IQSWAP_WAR,4,2            ; @MHF1_IQSWAP_WAR
	.no_dead_strip	_brcms_c_mhfdef
.subsections_via_symbols
