	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_config_bb_with_pghdr
_phy_config_bb_with_pghdr:              ## @phy_config_bb_with_pghdr
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	_BASEBAND_CONFIG_PHY_REG@GOTPCREL(%rip), %rcx
	cmpq	%r14, (%rcx)
	jne	LBB0_24
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_RTL8188EEPHY_REG_ARRAY_PGLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_25
## %bb.2:
	movq	_RTL8188EEPHY_REG_ARRAY_PG@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	-2(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	addq	$-5, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_3:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	callq	_udelay
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r13d, %rax
	movl	(%rbx,%r15,4), %esi
	movl	(%rbx,%rax,4), %edx
	movl	(%rbx,%r14,4), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_store_pwrindex_rate_offset
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	addl	$3, %r12d
	cmpl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_25
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movslq	%r12d, %r15
	movl	(%rbx,%r15,4), %esi
	leal	2(%r12), %r13d
	movslq	%r13d, %r14
	cmpl	$-842150452, %esi               ## imm = 0xCDCDCDCC
	ja	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leal	1(%r12), %r13d
	addl	$-249, %esi
	cmpl	$5, %esi
	ja	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$5, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	__rtl88e_check_condition
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$57005, 12(%rbx,%r15,4)         ## imm = 0xDEAD
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%ecx, %r13d
	jge	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	$3, %r14
	movl	%r13d, %r12d
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	$3, %r12d
	cmpl	$57005, 4(%rbx,%r14,4)          ## imm = 0xDEAD
	je	LBB0_6
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	3(%r14), %rax
	cmpq	%rcx, %r14
	movq	%rax, %r14
	jl	LBB0_16
	jmp	LBB0_6
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %r12d
	jmp	LBB0_6
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$50, %edi
	jmp	LBB0_4
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	callq	_mdelay
	jmp	LBB0_5
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$5, %edi
	callq	_mdelay
	jmp	LBB0_5
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$50, %edi
	callq	_mdelay
	jmp	LBB0_5
LBB0_24:
	movq	_COMP_SEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	callq	_RT_TRACE
LBB0_25:
	movl	$1, %eax
	addq	$40, %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_3, LBB0_3-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_RTL8188EEPHY_REG_ARRAY_PGLEN,4,2 ## @RTL8188EEPHY_REG_ARRAY_PGLEN
	.comm	_RTL8188EEPHY_REG_ARRAY_PG,8,3  ## @RTL8188EEPHY_REG_ARRAY_PG
	.comm	_BASEBAND_CONFIG_PHY_REG,8,3    ## @BASEBAND_CONFIG_PHY_REG
	.comm	_COMP_SEND,4,2                  ## @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"configtype != BaseBand_Config_PHY_REG\n"

	.no_dead_strip	_phy_config_bb_with_pghdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_config_bb_with_pghdr
_phy_config_bb_with_pghdr:              ; @phy_config_bb_with_pghdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	bl	_rtl_priv
Lloh0:
	adrp	x8, _BASEBAND_CONFIG_PHY_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASEBAND_CONFIG_PHY_REG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_20
; %bb.1:
Lloh3:
	adrp	x8, _RTL8188EEPHY_REG_ARRAY_PGLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8188EEPHY_REG_ARRAY_PGLEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x20, [x8]
	cmp	w20, #1
	b.lt	LBB0_21
; %bb.2:
	mov	w28, #0
Lloh6:
	adrp	x8, _RTL8188EEPHY_REG_ARRAY_PG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTL8188EEPHY_REG_ARRAY_PG@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	sub	w8, w20, #2
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	sub	x23, x20, #5
	add	x24, x21, #16
	mov	w27, #57005
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_udelay
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x26, #1
	ldr	w1, [x21, x26, lsl #2]
	ldr	w2, [x21, x8, lsl #2]
	ldr	w3, [x21, x22, lsl #2]
	mov	x0, x19
	bl	_store_pwrindex_rate_offset
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w28, w28, #3
	cmp	w28, w20
	b.ge	LBB0_21
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	sxtw	x26, w28
	ldr	w1, [x21, w28, sxtw #2]
	add	w25, w28, #2
	sxtw	x22, w25
	mov	w8, #52684
	movk	w8, #52685, lsl #16
	cmp	w1, w8
	b.hi	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w1, #249
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x11, lJTI0_0@PAGE
Lloh10:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_3
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #5
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	__rtl88e_check_condition
	cbnz	w0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w25, w8
	b.ge	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x21, x26, lsl #2
	ldr	w8, [x8, #12]
	cmp	w8, w27
	ccmp	w25, w23, #0, ne
	mov	x28, x25
	b.ge	LBB0_6
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x28, x22, #3
	ldr	w8, [x24, x22, lsl #2]
	cmp	w8, w27
	ccmp	x28, x23, #0, ne
	mov	x22, x28
	b.lt	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	b	LBB0_6
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #50
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	bl	_mdelay
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #5
	bl	_mdelay
	b	LBB0_5
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #50
	bl	_mdelay
	b	LBB0_5
LBB0_20:
Lloh11:
	adrp	x8, _COMP_SEND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COMP_SEND@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
LBB0_21:
	mov	w0, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
                                        ; -- End function
	.comm	_RTL8188EEPHY_REG_ARRAY_PGLEN,4,2 ; @RTL8188EEPHY_REG_ARRAY_PGLEN
	.comm	_RTL8188EEPHY_REG_ARRAY_PG,8,3  ; @RTL8188EEPHY_REG_ARRAY_PG
	.comm	_BASEBAND_CONFIG_PHY_REG,8,3    ; @BASEBAND_CONFIG_PHY_REG
	.comm	_COMP_SEND,4,2                  ; @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"configtype != BaseBand_Config_PHY_REG\n"

	.no_dead_strip	_phy_config_bb_with_pghdr
.subsections_via_symbols
