	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_phy_initb5
_b43legacy_phy_initb5:                  ## @b43legacy_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpl	$1, 16(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	orl	$80, %eax
	movq	%r15, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
LBB0_2:
	movq	%r15, %rdi
	callq	_is_bcm_board_vendor
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpl	$1046, (%rax)                   ## imm = 0x416
	je	LBB0_6
## %bb.4:
	movl	$8480, %ebx                     ## imm = 0x2120
	movl	$168, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_b43legacy_phy_write
	addl	$514, %ebx                      ## imm = 0x202
	incl	%r14d
	cmpl	$24414, %ebx                    ## imm = 0x5F5E
	jne	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	movl	$53, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$61695, %eax                    ## imm = 0xF0FF
	leal	1792(%rax), %edx
	movq	%r15, %rdi
	movl	$53, %esi
	callq	_b43legacy_phy_write
	cmpl	$8272, 20(%r15)                 ## imm = 0x2050
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	$56, %esi
	movl	$1639, %edx                     ## imm = 0x667
	callq	_b43legacy_phy_write
LBB0_8:
	cmpq	$0, 32(%r15)
	je	LBB0_12
## %bb.9:
	cmpl	$8272, 20(%r15)                 ## imm = 0x2050
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	orl	$32, %eax
	movq	%r15, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	movq	%r15, %rdi
	movl	$81, %esi
	callq	_b43legacy_radio_read16
	orl	$4, %eax
	movq	%r15, %rdi
	movl	$81, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
LBB0_11:
	movq	_B43legacy_MMIO_PHY_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_b43legacy_write16
	movq	%r15, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	callq	_b43legacy_phy_read
	orl	$256, %eax                      ## imm = 0x100
	movq	%r15, %rdi
	movl	$2050, %esi                     ## imm = 0x802
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$1067, %esi                     ## imm = 0x42B
	callq	_b43legacy_phy_read
	orl	$8192, %eax                     ## imm = 0x2000
	movq	%r15, %rdi
	movl	$1067, %esi                     ## imm = 0x42B
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$28, %esi
	movl	$6250, %edx                     ## imm = 0x186A
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$19, %esi
	callq	_b43legacy_phy_read
	movzbl	%al, %edx
	orl	$6400, %edx                     ## imm = 0x1900
	movq	%r15, %rdi
	movl	$19, %esi
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$53, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65408, %eax                    ## imm = 0xFF80
	leal	100(%rax), %edx
	movq	%r15, %rdi
	movl	$53, %esi
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$93, %esi
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65408, %eax                    ## imm = 0xFF80
	leal	10(%rax), %edx
	movq	%r15, %rdi
	movl	$93, %esi
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$91, %esi
	xorl	%edx, %edx
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$92, %esi
	xorl	%edx, %edx
	callq	_b43legacy_phy_write
LBB0_12:
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.13:
	movq	_B43legacy_PHY_RADIO_BITFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_b43legacy_phy_read
	orl	$4096, %eax                     ## imm = 0x1000
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_b43legacy_phy_write
LBB0_14:
	cmpl	$1, 16(%r15)
	jne	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	movl	$38, %esi
	movl	$52736, %edx                    ## imm = 0xCE00
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$33, %esi
	movl	$14179, %edx                    ## imm = 0x3763
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$34, %esi
	movl	$7107, %edx                     ## imm = 0x1BC3
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$35, %esi
	movl	$1785, %edx                     ## imm = 0x6F9
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$36, %esi
	movl	$894, %edx                      ## imm = 0x37E
	jmp	LBB0_17
LBB0_16:
	movq	%r15, %rdi
	movl	$38, %esi
	movl	$52224, %edx                    ## imm = 0xCC00
LBB0_17:
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$48, %esi
	movl	$198, %edx
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$1004, %esi                     ## imm = 0x3EC
	movl	$16162, %edx                    ## imm = 0x3F22
	callq	_b43legacy_write16
	cmpl	$1, 16(%r15)
	movl	$15900, %eax                    ## imm = 0x3E1C
	movl	$12316, %edx                    ## imm = 0x301C
	cmovel	%eax, %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_b43legacy_phy_write
	cmpl	$0, 16(%r15)
	jne	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	movl	$996, %esi                      ## imm = 0x3E4
	movl	$12288, %edx                    ## imm = 0x3000
	callq	_b43legacy_write16
LBB0_19:
	movl	24(%r15), %eax
	cmpl	$255, %eax
	movl	$1, %r14d
	cmovnel	%eax, %r14d
	movq	%r15, %rdi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_b43legacy_radio_selectchannel
	cmpl	$8272, 20(%r15)                 ## imm = 0x2050
	je	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	movl	$117, %esi
	movl	$128, %edx
	callq	_b43legacy_radio_write16
	movq	%r15, %rdi
	movl	$121, %esi
	movl	$129, %edx
	callq	_b43legacy_radio_write16
LBB0_21:
	movq	%r15, %rdi
	movl	$80, %esi
	movl	$32, %edx
	callq	_b43legacy_radio_write16
	movq	%r15, %rdi
	movl	$80, %esi
	movl	$35, %edx
	callq	_b43legacy_radio_write16
	cmpl	$8272, 20(%r15)                 ## imm = 0x2050
	jne	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	movl	$80, %esi
	movl	$32, %edx
	callq	_b43legacy_radio_write16
	movq	%r15, %rdi
	movl	$90, %esi
	movl	$112, %edx
	callq	_b43legacy_radio_write16
LBB0_23:
	movq	%r15, %rdi
	movl	$91, %esi
	movl	$123, %edx
	callq	_b43legacy_radio_write16
	movq	%r15, %rdi
	movl	$92, %esi
	movl	$176, %edx
	callq	_b43legacy_radio_write16
	movq	%r15, %rdi
	movl	$122, %esi
	callq	_b43legacy_radio_read16
	orl	$7, %eax
	movq	%r15, %rdi
	movl	$122, %esi
	movl	%eax, %edx
	callq	_b43legacy_radio_write16
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_b43legacy_radio_selectchannel
	movq	%r15, %rdi
	movl	$20, %esi
	movl	$128, %edx
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$50, %esi
	movl	$202, %edx
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$42, %esi
	movl	$34979, %edx                    ## imm = 0x88A3
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_b43legacy_radio_set_txpower_bg
	cmpl	$8272, 20(%r15)                 ## imm = 0x2050
	jne	LBB0_25
## %bb.24:
	movq	%r15, %rdi
	movl	$93, %esi
	movl	$13, %edx
	callq	_b43legacy_radio_write16
LBB0_25:
	movq	%r15, %rdi
	movl	$996, %esi                      ## imm = 0x3E4
	callq	_b43legacy_read16
                                        ## kill: def $eax killed $eax def $rax
	andl	$65472, %eax                    ## imm = 0xFFC0
	leal	4(%rax), %edx
	movq	%r15, %rdi
	movl	$996, %esi                      ## imm = 0x3E4
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacy_write16              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_MMIO_PHY_RADIO,4,2   ## @B43legacy_MMIO_PHY_RADIO
	.comm	_B43legacy_PHY_RADIO_BITFIELD,4,2 ## @B43legacy_PHY_RADIO_BITFIELD
	.no_dead_strip	_b43legacy_phy_initb5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_phy_initb5
_b43legacy_phy_initb5:                  ; @b43legacy_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	w8, [x0, #16]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	mov	w8, #80
	orr	w2, w0, w8
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
LBB0_2:
	mov	x0, x19
	bl	_is_bcm_board_vendor
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1046
	b.eq	LBB0_6
; %bb.4:
	mov	w20, #8480
	mov	w21, #168
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_b43legacy_phy_write
	add	w20, w20, #514
	add	w21, w21, #1
	cmp	w21, #199
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	mov	w1, #53
	bl	_b43legacy_phy_read
	mov	w8, #61695
	and	w8, w0, w8
	orr	w2, w8, #0x700
	mov	x0, x19
	mov	w1, #53
	bl	_b43legacy_phy_write
	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	_b43legacy_phy_write
LBB0_8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	w8, [x19, #20]
	mov	w9, #8272
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	orr	w2, w0, #0x20
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #81
	bl	_b43legacy_radio_read16
	orr	w2, w0, #0x4
	mov	x0, x19
	mov	w1, #81
	bl	_b43legacy_radio_write16
LBB0_11:
Lloh0:
	adrp	x8, _B43legacy_MMIO_PHY_RADIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_MMIO_PHY_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_b43legacy_write16
	mov	x0, x19
	mov	w1, #2050
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x100
	mov	x0, x19
	mov	w1, #2050
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1067
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x2000
	mov	x0, x19
	mov	w1, #1067
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #28
	mov	w2, #6250
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #19
	bl	_b43legacy_phy_read
	mov	w2, #6400
	bfxil	w2, w0, #0, #8
	mov	x0, x19
	mov	w1, #19
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #53
	bl	_b43legacy_phy_read
	and	w8, w0, #0xff80
	mov	w9, #100
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #53
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #93
	bl	_b43legacy_phy_read
	and	w8, w0, #0xff80
	mov	w9, #10
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #93
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #91
	mov	w2, #0
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #92
	mov	w2, #0
	bl	_b43legacy_phy_write
LBB0_12:
	ldr	x8, [x19]
	cbz	x8, LBB0_14
; %bb.13:
Lloh3:
	adrp	x8, _B43legacy_PHY_RADIO_BITFIELD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43legacy_PHY_RADIO_BITFIELD@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_read
	orr	w2, w0, #0x1000
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_phy_write
LBB0_14:
	ldr	w8, [x19, #16]
	mov	x0, x19
	mov	w1, #38
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.15:
	mov	w2, #52736
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #33
	mov	w2, #14179
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #34
	mov	w2, #7107
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #35
	mov	w2, #1785
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #36
	mov	w2, #894
	b	LBB0_17
LBB0_16:
	mov	w2, #52224
LBB0_17:
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #48
	mov	w2, #198
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1004
	mov	w2, #16162
	bl	_b43legacy_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	_b43legacy_phy_write
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #996
	mov	w2, #12288
	bl	_b43legacy_write16
LBB0_19:
	ldr	w8, [x19, #24]
	cmp	w8, #255
	csinc	w20, w8, wzr, ne
	mov	x0, x19
	mov	w1, #7
	mov	w2, #0
	bl	_b43legacy_radio_selectchannel
	ldr	w8, [x19, #20]
	mov	w21, #8272
	cmp	w8, w21
	b.eq	LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #117
	mov	w2, #128
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #121
	mov	w2, #129
	bl	_b43legacy_radio_write16
LBB0_21:
	mov	x0, x19
	mov	w1, #80
	mov	w2, #32
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #80
	mov	w2, #35
	bl	_b43legacy_radio_write16
	ldr	w8, [x19, #20]
	cmp	w8, w21
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x19
	mov	w1, #80
	mov	w2, #32
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #90
	mov	w2, #112
	bl	_b43legacy_radio_write16
LBB0_23:
	mov	x0, x19
	mov	w1, #91
	mov	w2, #123
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #92
	mov	w2, #176
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_read16
	orr	w2, w0, #0x7
	mov	x0, x19
	mov	w1, #122
	bl	_b43legacy_radio_write16
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_b43legacy_radio_selectchannel
	mov	x0, x19
	mov	w1, #20
	mov	w2, #128
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #50
	mov	w2, #202
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #42
	mov	w2, #34979
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #65535
	mov	w2, #65535
	mov	w3, #65535
	bl	_b43legacy_radio_set_txpower_bg
	ldr	w8, [x19, #20]
	mov	w9, #8272
	cmp	w8, w9
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x19
	mov	w1, #93
	mov	w2, #13
	bl	_b43legacy_radio_write16
LBB0_25:
	mov	x0, x19
	mov	w1, #996
	bl	_b43legacy_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	_b43legacy_write16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_MMIO_PHY_RADIO,4,2   ; @B43legacy_MMIO_PHY_RADIO
	.comm	_B43legacy_PHY_RADIO_BITFIELD,4,2 ; @B43legacy_PHY_RADIO_BITFIELD
	.no_dead_strip	_b43legacy_phy_initb5
.subsections_via_symbols
