	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_gpio_init
_brcms_c_gpio_init:                     ## @brcms_c_gpio_init
	.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	(%rdi), %rbx
	movq	_MCTL_GPOUT_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcms_b_mctrl
	movq	(%rbx), %rax
	movq	_ANTSEL_2x3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_MHF3@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MHF3_ANTSEL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BRCM_BAND_ALL@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_brcms_b_mhf
	movl	(%r14), %esi
	movq	_MHF3_ANTSEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_brcms_b_mhf
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_wlc_phy_antsel_init
	jmp	LBB0_4
LBB0_2:
	movq	_ANTSEL_2x4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_BOARD_GPIO_12@GOTPCREL(%rip), %r12
	movq	_BOARD_GPIO_13@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	orl	(%r12), %r15d
	movq	16(%rbx), %r14
	movq	_psm_gpio_oe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	(%r13), %edx
	orl	(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_set16
	movq	16(%rbx), %r14
	movq	_psm_gpio_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	(%r13), %edx
	orl	(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bcma_set16
	movq	_MHF3@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MHF3_ANTSEL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BRCM_BAND_ALL@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_brcms_b_mhf
	movl	(%r14), %esi
	movq	_MHF3_ANTSEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_brcms_b_mhf
	movq	_M_ANTSEL_CLKDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ANTSEL_CLKDIV_4MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_brcms_b_write_shm
LBB0_4:
	movq	_BFL_PACTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	8(%rbx), %edx
	je	LBB0_6
## %bb.5:
	movq	_BOARD_GPIO_PACTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_6:
	orl	%r15d, %edx
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	movl	%edx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcma_chipco_gpio_control       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCTL_GPOUT_SEL_MASK,4,2        ## @MCTL_GPOUT_SEL_MASK
	.comm	_ANTSEL_2x3,8,3                 ## @ANTSEL_2x3
	.comm	_MHF3,4,2                       ## @MHF3
	.comm	_MHF3_ANTSEL_EN,4,2             ## @MHF3_ANTSEL_EN
	.comm	_BRCM_BAND_ALL,4,2              ## @BRCM_BAND_ALL
	.comm	_MHF3_ANTSEL_MODE,4,2           ## @MHF3_ANTSEL_MODE
	.comm	_ANTSEL_2x4,8,3                 ## @ANTSEL_2x4
	.comm	_BOARD_GPIO_12,4,2              ## @BOARD_GPIO_12
	.comm	_BOARD_GPIO_13,4,2              ## @BOARD_GPIO_13
	.comm	_psm_gpio_oe,4,2                ## @psm_gpio_oe
	.comm	_psm_gpio_out,4,2               ## @psm_gpio_out
	.comm	_M_ANTSEL_CLKDIV,4,2            ## @M_ANTSEL_CLKDIV
	.comm	_ANTSEL_CLKDIV_4MHZ,4,2         ## @ANTSEL_CLKDIV_4MHZ
	.comm	_BFL_PACTRL,4,2                 ## @BFL_PACTRL
	.comm	_BOARD_GPIO_PACTRL,4,2          ## @BOARD_GPIO_PACTRL
	.no_dead_strip	_brcms_c_gpio_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_gpio_init
_brcms_c_gpio_init:                     ; @brcms_c_gpio_init
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _MCTL_GPOUT_SEL_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCTL_GPOUT_SEL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_brcms_b_mctrl
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ANTSEL_2x3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ANTSEL_2x3@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x20, _MHF3@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MHF3@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _MHF3_ANTSEL_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MHF3_ANTSEL_EN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x21, _BRCM_BAND_ALL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _BRCM_BAND_ALL@GOTPAGEOFF]
	ldr	w4, [x21]
	mov	x0, x19
	mov	x3, x2
	bl	_brcms_b_mhf
	ldr	w1, [x20]
Lloh13:
	adrp	x8, _MHF3_ANTSEL_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MHF3_ANTSEL_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w4, [x21]
	mov	x0, x19
	mov	x3, x2
	bl	_brcms_b_mhf
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wlc_phy_antsel_init
	b	LBB0_4
LBB0_2:
Lloh16:
	adrp	x9, _ANTSEL_2x4@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ANTSEL_2x4@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh19:
	adrp	x22, _BOARD_GPIO_12@GOTPAGE
Lloh20:
	ldr	x22, [x22, _BOARD_GPIO_12@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh21:
	adrp	x23, _BOARD_GPIO_13@GOTPAGE
Lloh22:
	ldr	x23, [x23, _BOARD_GPIO_13@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w21, w9, w8
	ldr	x20, [x19, #16]
Lloh23:
	adrp	x8, _psm_gpio_oe@GOTPAGE
Lloh24:
	ldr	x8, [x8, _psm_gpio_oe@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_bcma_set16
	ldr	x20, [x19, #16]
Lloh26:
	adrp	x8, _psm_gpio_out@GOTPAGE
Lloh27:
	ldr	x8, [x8, _psm_gpio_out@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_bcma_set16
Lloh29:
	adrp	x20, _MHF3@GOTPAGE
Lloh30:
	ldr	x20, [x20, _MHF3@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh31:
	adrp	x8, _MHF3_ANTSEL_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MHF3_ANTSEL_EN@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x22, _BRCM_BAND_ALL@GOTPAGE
Lloh35:
	ldr	x22, [x22, _BRCM_BAND_ALL@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x19
	mov	x3, x2
	bl	_brcms_b_mhf
	ldr	w1, [x20]
Lloh36:
	adrp	x8, _MHF3_ANTSEL_MODE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MHF3_ANTSEL_MODE@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w3, #0
	bl	_brcms_b_mhf
Lloh39:
	adrp	x8, _M_ANTSEL_CLKDIV@GOTPAGE
Lloh40:
	ldr	x8, [x8, _M_ANTSEL_CLKDIV@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _ANTSEL_CLKDIV_4MHZ@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ANTSEL_CLKDIV_4MHZ@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_brcms_b_write_shm
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	w8, [x19, #8]
Lloh45:
	adrp	x9, _BFL_PACTRL@GOTPAGE
Lloh46:
	ldr	x9, [x9, _BFL_PACTRL@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
Lloh48:
	adrp	x10, _BOARD_GPIO_PACTRL@GOTPAGE
Lloh49:
	ldr	x10, [x10, _BOARD_GPIO_PACTRL@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w8, wzr, w10, eq
	orr	w1, w8, w21
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	mov	x2, x1
	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
	b	_bcma_chipco_gpio_control
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_MCTL_GPOUT_SEL_MASK,4,2        ; @MCTL_GPOUT_SEL_MASK
	.comm	_ANTSEL_2x3,8,3                 ; @ANTSEL_2x3
	.comm	_MHF3,4,2                       ; @MHF3
	.comm	_MHF3_ANTSEL_EN,4,2             ; @MHF3_ANTSEL_EN
	.comm	_BRCM_BAND_ALL,4,2              ; @BRCM_BAND_ALL
	.comm	_MHF3_ANTSEL_MODE,4,2           ; @MHF3_ANTSEL_MODE
	.comm	_ANTSEL_2x4,8,3                 ; @ANTSEL_2x4
	.comm	_BOARD_GPIO_12,4,2              ; @BOARD_GPIO_12
	.comm	_BOARD_GPIO_13,4,2              ; @BOARD_GPIO_13
	.comm	_psm_gpio_oe,4,2                ; @psm_gpio_oe
	.comm	_psm_gpio_out,4,2               ; @psm_gpio_out
	.comm	_M_ANTSEL_CLKDIV,4,2            ; @M_ANTSEL_CLKDIV
	.comm	_ANTSEL_CLKDIV_4MHZ,4,2         ; @ANTSEL_CLKDIV_4MHZ
	.comm	_BFL_PACTRL,4,2                 ; @BFL_PACTRL
	.comm	_BOARD_GPIO_PACTRL,4,2          ; @BOARD_GPIO_PACTRL
	.no_dead_strip	_brcms_c_gpio_init
.subsections_via_symbols
