	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_init_bbp_5592
_rt2800_init_bbp_5592:                  ## @rt2800_init_bbp_5592
	.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, %rbx
	callq	_rt2800_init_bbp_early
	movq	%rbx, %rdi
	movl	$105, %esi
	callq	_rt2800_bbp_read
	movl	%eax, -28(%rbp)
	movq	_BBP105_MLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$2, (%rbx)
	sete	%dl
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	callq	_rt2x00_set_field8
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	movl	$105, %esi
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	callq	_rt2800_bbp4_mac_if_ctrl
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$6, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$31, %esi
	movl	$8, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$65, %esi
	movl	$44, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$68, %esi
	movl	$221, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$69, %esi
	movl	$26, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$70, %esi
	movl	$5, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$73, %esi
	movl	$19, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$74, %esi
	movl	$15, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$75, %esi
	movl	$79, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$76, %esi
	movl	$40, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$77, %esi
	movl	$89, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$84, %esi
	movl	$154, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$86, %esi
	movl	$56, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$88, %esi
	movl	$144, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$91, %esi
	movl	$4, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$92, %esi
	movl	$2, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$95, %esi
	movl	$154, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$98, %esi
	movl	$18, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$103, %esi
	movl	$192, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$104, %esi
	movl	$146, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$105, %esi
	movl	$60, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$106, %esi
	movl	$53, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$128, %esi
	movl	$18, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$134, %esi
	movl	$208, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$135, %esi
	movl	$246, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	movl	$137, %esi
	movl	$15, %edx
	callq	_rt2800_bbp_write
	movq	%rbx, %rdi
	callq	_rt2800_init_bbp_5592_glrt
	movq	%rbx, %rdi
	callq	_rt2800_bbp4_mac_if_ctrl
	movq	_EEPROM_NIC_CONF1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2800_eeprom_read
	movq	_EEPROM_NIC_CONF1_ANT_DIVERSITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_rt2x00_get_field16
	xorl	%r15d, %r15d
	cmpl	$3, %eax
	setne	%r15b
	movq	%rbx, %rdi
	movl	$152, %esi
	callq	_rt2800_bbp_read
	movl	%eax, -28(%rbp)
	movq	_BBP152_RX_DEFAULT_ANT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_rt2x00_set_field8
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	movl	$152, %esi
	callq	_rt2800_bbp_write
	movq	_RT5592@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_REV_RT5592C@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_rt_rev_gte
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$254, %esi
	callq	_rt2800_bbp_read
	movl	%eax, -28(%rbp)
	movq	_BBP254_BIT7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	movl	$254, %esi
	callq	_rt2800_bbp_write
LBB0_2:
	movq	%rbx, %rdi
	callq	_rt2800_init_freq_calibration
	movq	%rbx, %rdi
	movl	$84, %esi
	movl	$25, %edx
	callq	_rt2800_bbp_write
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_rt2x00_rt_rev_gte
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$103, %esi
	movl	$192, %edx
	callq	_rt2800_bbp_write
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BBP105_MLD,4,2                 ## @BBP105_MLD
	.comm	_EEPROM_NIC_CONF1,4,2           ## @EEPROM_NIC_CONF1
	.comm	_EEPROM_NIC_CONF1_ANT_DIVERSITY,4,2 ## @EEPROM_NIC_CONF1_ANT_DIVERSITY
	.comm	_BBP152_RX_DEFAULT_ANT,4,2      ## @BBP152_RX_DEFAULT_ANT
	.comm	_RT5592,4,2                     ## @RT5592
	.comm	_REV_RT5592C,4,2                ## @REV_RT5592C
	.comm	_BBP254_BIT7,4,2                ## @BBP254_BIT7
	.no_dead_strip	_rt2800_init_bbp_5592
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_init_bbp_5592
_rt2800_init_bbp_5592:                  ; @rt2800_init_bbp_5592
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_rt2800_init_bbp_early
	mov	x0, x19
	mov	w1, #105
	bl	_rt2800_bbp_read
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _BBP105_MLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BBP105_MLD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x19]
	cmp	w8, #2
	cset	w2, eq
	add	x0, sp, #12
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #105
	bl	_rt2800_bbp_write
	mov	x0, x19
	bl	_rt2800_bbp4_mac_if_ctrl
	mov	x0, x19
	mov	w1, #20
	mov	w2, #6
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #31
	mov	w2, #8
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #65
	mov	w2, #44
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #68
	mov	w2, #221
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #69
	mov	w2, #26
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #70
	mov	w2, #5
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #73
	mov	w2, #19
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #74
	mov	w2, #15
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #75
	mov	w2, #79
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #76
	mov	w2, #40
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #77
	mov	w2, #89
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #84
	mov	w2, #154
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #86
	mov	w2, #56
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #88
	mov	w2, #144
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #91
	mov	w2, #4
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #92
	mov	w2, #2
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #95
	mov	w2, #154
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #98
	mov	w2, #18
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #103
	mov	w2, #192
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #104
	mov	w2, #146
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #105
	mov	w2, #60
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #106
	mov	w2, #53
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #128
	mov	w2, #18
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #134
	mov	w2, #208
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #135
	mov	w2, #246
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #137
	mov	w2, #15
	bl	_rt2800_bbp_write
	mov	x0, x19
	bl	_rt2800_init_bbp_5592_glrt
	mov	x0, x19
	bl	_rt2800_bbp4_mac_if_ctrl
Lloh3:
	adrp	x8, _EEPROM_NIC_CONF1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPROM_NIC_CONF1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2800_eeprom_read
Lloh6:
	adrp	x8, _EEPROM_NIC_CONF1_ANT_DIVERSITY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEPROM_NIC_CONF1_ANT_DIVERSITY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_rt2x00_get_field16
	cmp	w0, #3
	cset	w20, ne
	mov	x0, x19
	mov	w1, #152
	bl	_rt2800_bbp_read
	str	w0, [sp, #12]
Lloh9:
	adrp	x8, _BBP152_RX_DEFAULT_ANT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BBP152_RX_DEFAULT_ANT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x20
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #152
	bl	_rt2800_bbp_write
Lloh12:
	adrp	x20, _RT5592@GOTPAGE
Lloh13:
	ldr	x20, [x20, _RT5592@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh14:
	adrp	x21, _REV_RT5592C@GOTPAGE
Lloh15:
	ldr	x21, [x21, _REV_RT5592C@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_rt2x00_rt_rev_gte
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #254
	bl	_rt2800_bbp_read
	str	w0, [sp, #12]
Lloh16:
	adrp	x8, _BBP254_BIT7@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BBP254_BIT7@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #254
	bl	_rt2800_bbp_write
LBB0_2:
	mov	x0, x19
	bl	_rt2800_init_freq_calibration
	mov	x0, x19
	mov	w1, #84
	mov	w2, #25
	bl	_rt2800_bbp_write
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_rt2x00_rt_rev_gte
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #103
	mov	w2, #192
	bl	_rt2800_bbp_write
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BBP105_MLD,4,2                 ; @BBP105_MLD
	.comm	_EEPROM_NIC_CONF1,4,2           ; @EEPROM_NIC_CONF1
	.comm	_EEPROM_NIC_CONF1_ANT_DIVERSITY,4,2 ; @EEPROM_NIC_CONF1_ANT_DIVERSITY
	.comm	_BBP152_RX_DEFAULT_ANT,4,2      ; @BBP152_RX_DEFAULT_ANT
	.comm	_RT5592,4,2                     ; @RT5592
	.comm	_REV_RT5592C,4,2                ; @REV_RT5592C
	.comm	_BBP254_BIT7,4,2                ; @BBP254_BIT7
	.no_dead_strip	_rt2800_init_bbp_5592
.subsections_via_symbols
