	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mii_check_gmii_support         ## -- Begin function mii_check_gmii_support
	.p2align	4, 0x90
_mii_check_gmii_support:                ## @mii_check_gmii_support
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*(%rbx)
	movq	_BMSR_ESTATEN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_MII_ESTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*(%rbx)
	movl	%eax, %ecx
	movq	_ESTATUS_1000_TFULL@GOTPCREL(%rip), %rax
	movq	_ESTATUS_1000_THALF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	$1, %eax
	testl	%ecx, %edx
	jne	LBB0_3
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_ESTATEN,4,2               ## @BMSR_ESTATEN
	.comm	_MII_ESTATUS,4,2                ## @MII_ESTATUS
	.comm	_ESTATUS_1000_TFULL,4,2         ## @ESTATUS_1000_TFULL
	.comm	_ESTATUS_1000_THALF,4,2         ## @ESTATUS_1000_THALF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mii_check_gmii_support         ; -- Begin function mii_check_gmii_support
	.p2align	2
_mii_check_gmii_support:                ; @mii_check_gmii_support
	.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]
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x9, _MII_BMSR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MII_BMSR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	blr	x8
Lloh3:
	adrp	x8, _BMSR_ESTATEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMSR_ESTATEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldp	w1, w0, [x19, #8]
Lloh6:
	adrp	x9, _MII_ESTATUS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MII_ESTATUS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	blr	x8
Lloh9:
	adrp	x8, _ESTATUS_1000_TFULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ESTATUS_1000_TFULL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ESTATUS_1000_THALF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ESTATUS_1000_THALF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_ESTATEN,4,2               ; @BMSR_ESTATEN
	.comm	_MII_ESTATUS,4,2                ; @MII_ESTATUS
	.comm	_ESTATUS_1000_TFULL,4,2         ; @ESTATUS_1000_TFULL
	.comm	_ESTATUS_1000_THALF,4,2         ; @ESTATUS_1000_THALF
.subsections_via_symbols
