	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_init_bbp
_rt61pci_init_bbp:                      ## @rt61pci_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, %r15
	callq	_rt61pci_wait_bbp_ready
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EACCES@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_2:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$48, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$21, %esi
	movl	$200, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$22, %esi
	movl	$56, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$23, %esi
	movl	$6, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$24, %esi
	movl	$254, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$25, %esi
	movl	$10, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$26, %esi
	movl	$13, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$34, %esi
	movl	$18, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$37, %esi
	movl	$7, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$39, %esi
	movl	$248, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$41, %esi
	movl	$96, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$53, %esi
	movl	$16, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$54, %esi
	movl	$24, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$60, %esi
	movl	$16, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$61, %esi
	movl	$4, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$62, %esi
	movl	$4, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$75, %esi
	movl	$254, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$86, %esi
	movl	$254, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$88, %esi
	movl	$254, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$90, %esi
	movl	$15, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$99, %esi
	xorl	%edx, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$102, %esi
	movl	$22, %edx
	callq	_rt61pci_bbp_write
	movq	%r15, %rdi
	movl	$107, %esi
	movl	$4, %edx
	callq	_rt61pci_bbp_write
	movq	_EEPROM_BBP_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	movq	_EEPROM_BBP_START@GOTPCREL(%rip), %r12
	movq	_EEPROM_BBP_SIZE@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jae	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_rt2x00_eeprom_read
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r13d
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_EEPROM_BBP_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field16
	movl	%eax, %r14d
	movq	_EEPROM_BBP_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field16
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	_EEPROM_BBP_SIZE@GOTPCREL(%rip), %r14
	movl	%eax, %edx
	callq	_rt61pci_bbp_write
	jmp	LBB0_7
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EEPROM_BBP_SIZE,4,2            ## @EEPROM_BBP_SIZE
	.comm	_EEPROM_BBP_START,8,3           ## @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	_rt61pci_init_bbp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_init_bbp
_rt61pci_init_bbp:                      ; @rt61pci_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	_rt61pci_wait_bbp_ready
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EACCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #15
	mov	w2, #48
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #21
	mov	w2, #200
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #22
	mov	w2, #56
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #23
	mov	w2, #6
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #24
	mov	w2, #254
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #25
	mov	w2, #10
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #26
	mov	w2, #13
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #34
	mov	w2, #18
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #37
	mov	w2, #7
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #39
	mov	w2, #248
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #41
	mov	w2, #96
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #53
	mov	w2, #16
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #54
	mov	w2, #24
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #60
	mov	w2, #16
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #61
	mov	w2, #4
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #62
	mov	w2, #4
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #75
	mov	w2, #254
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #86
	mov	w2, #254
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #88
	mov	w2, #254
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #90
	mov	w2, #15
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #99
	mov	w2, #0
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #102
	mov	w2, #22
	bl	_rt61pci_bbp_write
	mov	x0, x19
	mov	w1, #107
	mov	w2, #4
	bl	_rt61pci_bbp_write
Lloh3:
	adrp	x22, _EEPROM_BBP_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EEPROM_BBP_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_7
; %bb.3:
	mov	x23, #0
Lloh5:
	adrp	x24, _EEPROM_BBP_START@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EEPROM_BBP_START@GOTPAGEOFF]
	mov	w25, #65535
Lloh7:
	adrp	x26, _EEPROM_BBP_REG_ID@GOTPAGE
Lloh8:
	ldr	x26, [x26, _EEPROM_BBP_REG_ID@GOTPAGEOFF]
Lloh9:
	adrp	x27, _EEPROM_BBP_VALUE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _EEPROM_BBP_VALUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	w8, [x22]
	cmp	x23, x8
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x1, x23, x8
	mov	x0, x19
	bl	_rt2x00_eeprom_read
	cmp	w0, #0
	ccmp	w0, w25, #4, ne
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	ldr	w1, [x26]
	bl	_rt2x00_get_field16
	mov	x21, x0
	ldr	w1, [x27]
	mov	x0, x20
	bl	_rt2x00_get_field16
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_rt61pci_bbp_write
	b	LBB0_4
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EEPROM_BBP_SIZE,4,2            ; @EEPROM_BBP_SIZE
	.comm	_EEPROM_BBP_START,8,3           ; @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	_rt61pci_init_bbp
.subsections_via_symbols
