	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_init_bbp
_rt2800_init_bbp:                       ## @rt2800_init_bbp
	.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, %r14
	callq	_rt2800_is_305x_soc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_rt2800_init_bbp_305x_soc
LBB0_2:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$16, %eax
	ja	LBB0_15
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	%r14, %rdi
	callq	_rt2800_init_bbp_30xx
	jmp	LBB0_15
LBB0_4:
	movq	%r14, %rdi
	callq	_rt2800_init_bbp_28xx
	jmp	LBB0_15
LBB0_12:
	movq	%r14, %rdi
	callq	_rt2800_init_bbp_53xx
	jmp	LBB0_15
LBB0_7:
	movq	%r14, %rdi
	callq	_rt2800_init_bbp_3352
	jmp	LBB0_15
LBB0_14:
	movq	%r14, %rdi
	callq	_rt2800_init_bbp_6352
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2800_init_bbp_5592           ## TAILCALL
LBB0_11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2800_init_bbp_3883           ## TAILCALL
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2800_init_bbp_3593           ## TAILCALL
LBB0_9:
	movq	%r14, %rdi
	callq	_rt2800_init_bbp_3572
	jmp	LBB0_15
LBB0_8:
	movq	%r14, %rdi
	callq	_rt2800_init_bbp_3390
	jmp	LBB0_15
LBB0_6:
	movq	%r14, %rdi
	callq	_rt2800_init_bbp_3290
LBB0_15:
	movq	_EEPROM_BBP_SIZE@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_21
## %bb.16:
	xorl	%ebx, %ebx
	movq	_EEPROM_BBP_START@GOTPCREL(%rip), %r13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jae	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_rt2800_eeprom_read_from_array
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%eax, %r15d
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_EEPROM_BBP_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_rt2x00_get_field16
	movq	%r12, %r13
	movl	%eax, %r12d
	movq	_EEPROM_BBP_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_rt2x00_get_field16
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r13, %r12
	movq	_EEPROM_BBP_START@GOTPCREL(%rip), %r13
	movl	%eax, %edx
	callq	_rt2800_bbp_write
	jmp	LBB0_20
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_EEPROM_BBP_SIZE,4,2            ## @EEPROM_BBP_SIZE
	.comm	_EEPROM_BBP_START,4,2           ## @EEPROM_BBP_START
	.comm	_EEPROM_BBP_REG_ID,4,2          ## @EEPROM_BBP_REG_ID
	.comm	_EEPROM_BBP_VALUE,4,2           ## @EEPROM_BBP_VALUE
	.no_dead_strip	_rt2800_init_bbp
.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
_rt2800_init_bbp:                       ; @rt2800_init_bbp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_rt2800_is_305x_soc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rt2800_init_bbp_305x_soc
LBB0_2:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #16
	b.hi	LBB0_15
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	x0, x19
	bl	_rt2800_init_bbp_30xx
	b	LBB0_15
LBB0_5:
	mov	x0, x19
	bl	_rt2800_init_bbp_28xx
	b	LBB0_15
LBB0_6:
	mov	x0, x19
	bl	_rt2800_init_bbp_53xx
	b	LBB0_15
LBB0_7:
	mov	x0, x19
	bl	_rt2800_init_bbp_3352
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	bl	_rt2800_init_bbp_6352
	b	LBB0_15
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_rt2800_init_bbp_5592
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_rt2800_init_bbp_3883
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_rt2800_init_bbp_3593
LBB0_12:
	mov	x0, x19
	bl	_rt2800_init_bbp_3572
	b	LBB0_15
LBB0_13:
	mov	x0, x19
	bl	_rt2800_init_bbp_3390
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_rt2800_init_bbp_3290
LBB0_15:
Lloh2:
	adrp	x23, _EEPROM_BBP_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EEPROM_BBP_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_20
; %bb.16:
	mov	w20, #0
Lloh4:
	adrp	x24, _EEPROM_BBP_START@GOTPAGE
Lloh5:
	ldr	x24, [x24, _EEPROM_BBP_START@GOTPAGEOFF]
	mov	w25, #65535
Lloh6:
	adrp	x26, _EEPROM_BBP_REG_ID@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EEPROM_BBP_REG_ID@GOTPAGEOFF]
Lloh8:
	adrp	x27, _EEPROM_BBP_VALUE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EEPROM_BBP_VALUE@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w20, w20, #1
	ldr	w8, [x23]
	cmp	w20, w8
	b.hs	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_rt2800_eeprom_read_from_array
	cmp	w0, #0
	ccmp	w0, w25, #4, ne
	b.eq	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x21, x0
	ldr	w1, [x26]
	bl	_rt2x00_get_field16
	mov	x22, x0
	ldr	w1, [x27]
	mov	x0, x21
	bl	_rt2x00_get_field16
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_rt2800_bbp_write
	b	LBB0_17
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
                                        ; -- End function
	.comm	_EEPROM_BBP_SIZE,4,2            ; @EEPROM_BBP_SIZE
	.comm	_EEPROM_BBP_START,4,2           ; @EEPROM_BBP_START
	.comm	_EEPROM_BBP_REG_ID,4,2          ; @EEPROM_BBP_REG_ID
	.comm	_EEPROM_BBP_VALUE,4,2           ; @EEPROM_BBP_VALUE
	.no_dead_strip	_rt2800_init_bbp
.subsections_via_symbols
