	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_pci_phy_cfg
_rtw_pci_phy_cfg:                       ## @rtw_pci_phy_cfg
	.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
	movq	8(%rdi), %r15
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %r12d
	movb	(%r14), %cl
	shll	%cl, %r12d
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.1:
	movl	$16, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_rtw_dbi_write8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rcx
	testl	%r12d, -16(%rcx,%rbx)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-12(%rcx,%rbx), %esi
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-8(%rcx,%rbx), %edx
	movq	(%rcx,%rbx), %rax
	movq	_RTW_IP_SEL_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_rtw_mdio_write
	jmp	LBB0_7
LBB0_8:
	cmpl	$0, 4(%rax)
	jle	LBB0_16
## %bb.9:
	movl	$16, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	callq	_rtw_dbi_write8
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movq	(%r15), %rax
	movslq	4(%rax), %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	testl	%r12d, -16(%rax,%rbx)
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-12(%rax,%rbx), %esi
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-8(%rax,%rbx), %edx
	movq	(%rax,%rbx), %rax
	movq	_RTW_IP_SEL_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_rtw_mdio_write
	jmp	LBB0_15
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_IP_SEL_PHY,8,3             ## @RTW_IP_SEL_PHY
	.no_dead_strip	_rtw_pci_phy_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_pci_phy_cfg
_rtw_pci_phy_cfg:                       ; @rtw_pci_phy_cfg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	w0, #0
	bl	_BIT
	ldr	w8, [x19]
	lsl	w21, w0, w8
	ldr	x8, [x20]
	ldr	w9, [x8]
Lloh0:
	adrp	x22, _RTW_IP_SEL_PHY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RTW_IP_SEL_PHY@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	mov	w25, #65535
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_rtw_dbi_write8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	add	x23, x23, #24
	cmp	x24, x9
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #16]
	ldr	w10, [x9, x23]
	tst	w10, w21
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, x23
	ldr	w1, [x9, #4]
	cmp	w1, w25
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x9, #8]
	ldr	x8, [x9, #16]
	ldr	x9, [x22]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w3, #1
	bl	_rtw_mdio_write
	b	LBB0_3
LBB0_8:
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x23, #0
	mov	x24, #0
	mov	w25, #65535
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_rtw_dbi_write8
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8, #4]
	add	x23, x23, #24
	cmp	x24, x9
	b.ge	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	w9, [x8, x23]
	tst	w9, w21
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, x23
	ldr	w1, [x8, #4]
	cmp	w1, w25
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w2, [x8, #8]
	ldr	x8, [x8, #16]
	ldr	x9, [x22]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w3, #0
	bl	_rtw_mdio_write
	b	LBB0_11
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_IP_SEL_PHY,8,3             ; @RTW_IP_SEL_PHY
	.no_dead_strip	_rtw_pci_phy_cfg
.subsections_via_symbols
