	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_initb5
_b43_phy_initb5:                        ## @b43_phy_initb5
	.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
	movq	%rdi, %r12
	movq	40(%rdi), %r14
	cmpl	$1, 16(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$122, %esi
	movl	$80, %edx
	callq	_b43_radio_set
LBB0_2:
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	movq	_SSB_BOARDVENDOR_BCM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.3:
	movq	8(%rax), %rax
	movq	_SSB_BOARD_BU4306@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movl	$8480, %ebx                     ## imm = 0x2120
	movl	$168, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_b43_phy_write
	addl	$514, %ebx                      ## imm = 0x202
	incl	%r15d
	cmpl	$24414, %ebx                    ## imm = 0x5F5E
	jne	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	movl	$53, %esi
	movl	$61695, %edx                    ## imm = 0xF0FF
	movl	$1792, %ecx                     ## imm = 0x700
	callq	_b43_phy_maskset
	cmpl	$8272, 20(%r12)                 ## imm = 0x2050
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movl	$56, %esi
	movl	$1639, %edx                     ## imm = 0x667
	callq	_b43_phy_write
LBB0_8:
	cmpq	$0, 32(%r12)
	jne	LBB0_10
## %bb.9:
	cmpl	$2, 24(%r12)
	jl	LBB0_13
LBB0_10:
	cmpl	$8272, 20(%r12)                 ## imm = 0x2050
	jne	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movl	$122, %esi
	movl	$32, %edx
	callq	_b43_radio_set
	movq	%r12, %rdi
	movl	$81, %esi
	movl	$4, %edx
	callq	_b43_radio_set
LBB0_12:
	movq	_B43_MMIO_PHY_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_b43_write16
	movq	%r12, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	movl	$256, %edx                      ## imm = 0x100
	callq	_b43_phy_set
	movq	%r12, %rdi
	movl	$1067, %esi                     ## imm = 0x42B
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_b43_phy_set
	movq	%r12, %rdi
	movl	$28, %esi
	movl	$6250, %edx                     ## imm = 0x186A
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$19, %esi
	movl	$255, %edx
	movl	$6400, %ecx                     ## imm = 0x1900
	callq	_b43_phy_maskset
	movq	%r12, %rdi
	movl	$53, %esi
	movl	$65472, %edx                    ## imm = 0xFFC0
	movl	$100, %ecx
	callq	_b43_phy_maskset
	movq	%r12, %rdi
	movl	$93, %esi
	movl	$65408, %edx                    ## imm = 0xFF80
	movl	$10, %ecx
	callq	_b43_phy_maskset
LBB0_13:
	cmpq	$0, (%r12)
	je	LBB0_15
## %bb.14:
	movq	_B43_PHY_RADIO_BITFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_b43_phy_set
LBB0_15:
	cmpl	$1, 16(%r12)
	jne	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movl	$38, %esi
	movl	$52736, %edx                    ## imm = 0xCE00
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$33, %esi
	movl	$14179, %edx                    ## imm = 0x3763
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$34, %esi
	movl	$7107, %edx                     ## imm = 0x1BC3
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$35, %esi
	movl	$1785, %edx                     ## imm = 0x6F9
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$36, %esi
	movl	$894, %edx                      ## imm = 0x37E
	jmp	LBB0_18
LBB0_17:
	movq	%r12, %rdi
	movl	$38, %esi
	movl	$52224, %edx                    ## imm = 0xCC00
LBB0_18:
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$48, %esi
	movl	$198, %edx
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$1004, %esi                     ## imm = 0x3EC
	movl	$16162, %edx                    ## imm = 0x3F22
	callq	_b43_write16
	cmpl	$1, 16(%r12)
	movl	$15900, %eax                    ## imm = 0x3E1C
	movl	$12316, %edx                    ## imm = 0x301C
	cmovel	%eax, %edx
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_b43_phy_write
	cmpl	$0, 16(%r12)
	jne	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	movl	$996, %esi                      ## imm = 0x3E4
	movl	$12288, %edx                    ## imm = 0x3000
	callq	_b43_write16
LBB0_20:
	movl	28(%r12), %r15d
	movq	%r12, %rdi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_b43_gphy_channel_switch
	cmpl	$8272, 20(%r12)                 ## imm = 0x2050
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	movl	$117, %esi
	movl	$128, %edx
	callq	_b43_radio_write16
	movq	%r12, %rdi
	movl	$121, %esi
	movl	$129, %edx
	callq	_b43_radio_write16
LBB0_22:
	movq	%r12, %rdi
	movl	$80, %esi
	movl	$32, %edx
	callq	_b43_radio_write16
	movq	%r12, %rdi
	movl	$80, %esi
	movl	$35, %edx
	callq	_b43_radio_write16
	cmpl	$8272, 20(%r12)                 ## imm = 0x2050
	jne	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	movl	$80, %esi
	movl	$32, %edx
	callq	_b43_radio_write16
	movq	%r12, %rdi
	movl	$90, %esi
	movl	$112, %edx
	callq	_b43_radio_write16
LBB0_24:
	movq	%r12, %rdi
	movl	$91, %esi
	movl	$123, %edx
	callq	_b43_radio_write16
	movq	%r12, %rdi
	movl	$92, %esi
	movl	$176, %edx
	callq	_b43_radio_write16
	movq	%r12, %rdi
	movl	$122, %esi
	movl	$7, %edx
	callq	_b43_radio_set
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_b43_gphy_channel_switch
	movq	%r12, %rdi
	movl	$20, %esi
	movl	$128, %edx
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$50, %esi
	movl	$202, %edx
	callq	_b43_phy_write
	movq	%r12, %rdi
	movl	$42, %esi
	movl	$34979, %edx                    ## imm = 0x88A3
	callq	_b43_phy_write
	leaq	8(%r14), %rsi
	movl	(%r14), %ecx
	addq	$4, %r14
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_b43_set_txpower_g
	cmpl	$8272, 20(%r12)                 ## imm = 0x2050
	jne	LBB0_26
## %bb.25:
	movq	%r12, %rdi
	movl	$93, %esi
	movl	$13, %edx
	callq	_b43_radio_write16
LBB0_26:
	movq	%r12, %rdi
	movl	$996, %esi                      ## imm = 0x3E4
	callq	_b43_read16
                                        ## kill: def $eax killed $eax def $rax
	andl	$65472, %eax                    ## imm = 0xFFC0
	leal	4(%rax), %edx
	movq	%r12, %rdi
	movl	$996, %esi                      ## imm = 0x3E4
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_write16                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SSB_BOARDVENDOR_BCM,8,3        ## @SSB_BOARDVENDOR_BCM
	.comm	_SSB_BOARD_BU4306,8,3           ## @SSB_BOARD_BU4306
	.comm	_B43_MMIO_PHY_RADIO,4,2         ## @B43_MMIO_PHY_RADIO
	.comm	_B43_PHY_RADIO_BITFIELD,4,2     ## @B43_PHY_RADIO_BITFIELD
	.no_dead_strip	_b43_phy_initb5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_phy_initb5
_b43_phy_initb5:                        ; @b43_phy_initb5
	.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	x19, x0
	ldr	x20, [x0, #40]
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #122
	mov	w2, #80
	bl	_b43_radio_set
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _SSB_BOARDVENDOR_BCM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SSB_BOARDVENDOR_BCM@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _SSB_BOARD_BU4306@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSB_BOARD_BU4306@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	mov	w21, #8480
	mov	w22, #168
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_b43_phy_write
	add	w21, w21, #514
	add	w22, w22, #1
	cmp	w22, #199
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	mov	w1, #53
	mov	w2, #61695
	mov	w3, #1792
	bl	_b43_phy_maskset
	ldr	w8, [x19, #20]
	mov	w9, #8272
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #56
	mov	w2, #1639
	bl	_b43_phy_write
LBB0_8:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	w8, [x19, #24]
	cmp	w8, #2
	b.lt	LBB0_13
LBB0_10:
	ldr	w8, [x19, #20]
	mov	w9, #8272
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #122
	mov	w2, #32
	bl	_b43_radio_set
	mov	x0, x19
	mov	w1, #81
	mov	w2, #4
	bl	_b43_radio_set
LBB0_12:
Lloh6:
	adrp	x8, _B43_MMIO_PHY_RADIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_MMIO_PHY_RADIO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_b43_write16
	mov	x0, x19
	mov	w1, #2050
	mov	w2, #256
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #1067
	mov	w2, #8192
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #28
	mov	w2, #6250
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #19
	mov	w2, #255
	mov	w3, #6400
	bl	_b43_phy_maskset
	mov	x0, x19
	mov	w1, #53
	mov	w2, #65472
	mov	w3, #100
	bl	_b43_phy_maskset
	mov	x0, x19
	mov	w1, #93
	mov	w2, #65408
	mov	w3, #10
	bl	_b43_phy_maskset
LBB0_13:
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.14:
Lloh9:
	adrp	x8, _B43_PHY_RADIO_BITFIELD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_PHY_RADIO_BITFIELD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2048
	bl	_b43_phy_set
LBB0_15:
	ldr	w8, [x19, #16]
	mov	x0, x19
	mov	w1, #38
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.16:
	mov	w2, #52736
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #33
	mov	w2, #14179
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #34
	mov	w2, #7107
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #35
	mov	w2, #1785
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #36
	mov	w2, #894
	b	LBB0_18
LBB0_17:
	mov	w2, #52224
LBB0_18:
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #48
	mov	w2, #198
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #1004
	mov	w2, #16162
	bl	_b43_write16
	ldr	w8, [x19, #16]
	mov	w9, #12316
	mov	w10, #15900
	cmp	w8, #1
	csel	w2, w10, w9, eq
	mov	x0, x19
	mov	w1, #32
	bl	_b43_phy_write
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_20
; %bb.19:
	mov	x0, x19
	mov	w1, #996
	mov	w2, #12288
	bl	_b43_write16
LBB0_20:
	ldr	w21, [x19, #28]
	mov	x0, x19
	mov	w1, #7
	mov	w2, #0
	bl	_b43_gphy_channel_switch
	ldr	w8, [x19, #20]
	mov	w22, #8272
	cmp	w8, w22
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x19
	mov	w1, #117
	mov	w2, #128
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #121
	mov	w2, #129
	bl	_b43_radio_write16
LBB0_22:
	mov	x0, x19
	mov	w1, #80
	mov	w2, #32
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #80
	mov	w2, #35
	bl	_b43_radio_write16
	ldr	w8, [x19, #20]
	cmp	w8, w22
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x19
	mov	w1, #80
	mov	w2, #32
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #90
	mov	w2, #112
	bl	_b43_radio_write16
LBB0_24:
	mov	x0, x19
	mov	w1, #91
	mov	w2, #123
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #92
	mov	w2, #176
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #122
	mov	w2, #7
	bl	_b43_radio_set
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_b43_gphy_channel_switch
	mov	x0, x19
	mov	w1, #20
	mov	w2, #128
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #50
	mov	w2, #202
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #42
	mov	w2, #34979
	bl	_b43_phy_write
	add	x1, x20, #8
	ldr	w3, [x20], #4
	mov	x0, x19
	mov	x2, x20
	bl	_b43_set_txpower_g
	ldr	w8, [x19, #20]
	mov	w9, #8272
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x19
	mov	w1, #93
	mov	w2, #13
	bl	_b43_radio_write16
LBB0_26:
	mov	x0, x19
	mov	w1, #996
	bl	_b43_read16
	and	w8, w0, #0xffc0
	orr	w2, w8, #0x4
	mov	x0, x19
	mov	w1, #996
	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
	b	_b43_write16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SSB_BOARDVENDOR_BCM,8,3        ; @SSB_BOARDVENDOR_BCM
	.comm	_SSB_BOARD_BU4306,8,3           ; @SSB_BOARD_BU4306
	.comm	_B43_MMIO_PHY_RADIO,4,2         ; @B43_MMIO_PHY_RADIO
	.comm	_B43_PHY_RADIO_BITFIELD,4,2     ; @B43_PHY_RADIO_BITFIELD
	.no_dead_strip	_b43_phy_initb5
.subsections_via_symbols
