	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8169_set_magic_reg
_rtl8169_set_magic_reg:                 ## @rtl8169_set_magic_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_RTL_GIGA_MAC_VER_05@GOTPCREL(%rip), %rcx
	movl	$1048320, %r14d                 ## imm = 0xFFF00
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_RTL_GIGA_MAC_VER_06@GOTPCREL(%rip), %rcx
	movl	$16776960, %r14d                ## imm = 0xFFFF00
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	_Config2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RTL_R8
	movq	_PCI_Clock_66MHz@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%r14d, %edx
	orl	$255, %edx
	testl	%eax, %eax
	cmovel	%r14d, %edx
	movq	%rbx, %rdi
	movl	$124, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RTL_W32                        ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_GIGA_MAC_VER_05,8,3        ## @RTL_GIGA_MAC_VER_05
	.comm	_RTL_GIGA_MAC_VER_06,8,3        ## @RTL_GIGA_MAC_VER_06
	.comm	_Config2,4,2                    ## @Config2
	.comm	_PCI_Clock_66MHz,4,2            ## @PCI_Clock_66MHz
	.no_dead_strip	_rtl8169_set_magic_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8169_set_magic_reg
_rtl8169_set_magic_reg:                 ; @rtl8169_set_magic_reg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RTL_GIGA_MAC_VER_05@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL_GIGA_MAC_VER_05@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #1048320
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _RTL_GIGA_MAC_VER_06@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTL_GIGA_MAC_VER_06@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	w20, #16776960
LBB0_4:
Lloh6:
	adrp	x8, _Config2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Config2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RTL_R8
Lloh9:
	adrp	x8, _PCI_Clock_66MHz@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_Clock_66MHz@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w9, w20, #0xff
	tst	w8, w0
	csel	w2, w20, w9, eq
	mov	x0, x19
	mov	w1, #124
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RTL_W32
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_GIGA_MAC_VER_05,8,3        ; @RTL_GIGA_MAC_VER_05
	.comm	_RTL_GIGA_MAC_VER_06,8,3        ; @RTL_GIGA_MAC_VER_06
	.comm	_Config2,4,2                    ; @Config2
	.comm	_PCI_Clock_66MHz,4,2            ; @PCI_Clock_66MHz
	.no_dead_strip	_rtl8169_set_magic_reg
.subsections_via_symbols
