	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_mdio_reset
_xgbe_phy_mdio_reset:                   ## @xgbe_phy_mdio_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	(%r15), %rax
	movq	_XGBE_CONN_TYPE_MDIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	callq	_xgbe_phy_get_comm_ownership
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	8(%r15), %rax
	movq	_XGBE_MDIO_RESET_I2C_GPIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_xgbe_phy_i2c_mdio_reset
	jmp	LBB0_6
LBB0_4:
	movq	_XGBE_MDIO_RESET_INT_GPIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_xgbe_phy_int_mdio_reset
LBB0_6:
	movl	%eax, %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_xgbe_phy_put_comm_ownership
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGBE_CONN_TYPE_MDIO,8,3        ## @XGBE_CONN_TYPE_MDIO
	.comm	_XGBE_MDIO_RESET_I2C_GPIO,8,3   ## @XGBE_MDIO_RESET_I2C_GPIO
	.comm	_XGBE_MDIO_RESET_INT_GPIO,8,3   ## @XGBE_MDIO_RESET_INT_GPIO
	.no_dead_strip	_xgbe_phy_mdio_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_mdio_reset
_xgbe_phy_mdio_reset:                   ; @xgbe_phy_mdio_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _XGBE_CONN_TYPE_MDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XGBE_CONN_TYPE_MDIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_xgbe_phy_get_comm_ownership
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x9, _XGBE_MDIO_RESET_I2C_GPIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XGBE_MDIO_RESET_I2C_GPIO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_xgbe_phy_i2c_mdio_reset
	b	LBB0_7
LBB0_4:
	mov	w20, #0
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x9, _XGBE_MDIO_RESET_INT_GPIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XGBE_MDIO_RESET_INT_GPIO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_xgbe_phy_int_mdio_reset
LBB0_7:
	mov	x20, x0
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x19
	bl	_xgbe_phy_put_comm_ownership
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_XGBE_CONN_TYPE_MDIO,8,3        ; @XGBE_CONN_TYPE_MDIO
	.comm	_XGBE_MDIO_RESET_I2C_GPIO,8,3   ; @XGBE_MDIO_RESET_I2C_GPIO
	.comm	_XGBE_MDIO_RESET_INT_GPIO,8,3   ; @XGBE_MDIO_RESET_INT_GPIO
	.no_dead_strip	_xgbe_phy_mdio_reset
.subsections_via_symbols
