	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8367_extif_init
_rtl8367_extif_init:                    ## @rtl8367_extif_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	%rdx, %rax
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	movq	_RTL8367_EXTIF_MODE_DISABLED@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_rtl8367_extif_set_mode
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	_RTL8367_EXTIF_MODE_DISABLED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	leaq	12(%r12), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rtl8367_extif_set_force
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	4(%r12), %ecx
	movl	8(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rtl8367_extif_set_rgmii_delay
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8367_EXTIF_MODE_DISABLED,4,2 ## @RTL8367_EXTIF_MODE_DISABLED
	.no_dead_strip	_rtl8367_extif_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8367_extif_init
_rtl8367_extif_init:                    ; @rtl8367_extif_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _RTL8367_EXTIF_MODE_DISABLED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RTL8367_EXTIF_MODE_DISABLED@GOTPAGEOFF]
	cmp	x2, #0
	csel	x8, x23, x2, eq
	ldr	w22, [x8]
	mov	x2, x22
	bl	_rtl8367_extif_set_mode
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x23]
	cmp	w22, w8
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	add	x2, x21, #12
	mov	x0, x20
	mov	x1, x19
	bl	_rtl8367_extif_set_force
	cbnz	w0, LBB0_5
; %bb.4:
	ldp	w3, w2, [x21, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_rtl8367_extif_set_rgmii_delay
	cbz	w0, LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8367_EXTIF_MODE_DISABLED,4,2 ; @RTL8367_EXTIF_MODE_DISABLED
	.no_dead_strip	_rtl8367_extif_init
.subsections_via_symbols
