	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_set_ext_mii_mode
_xgbe_set_ext_mii_mode:                 ## @xgbe_set_ext_mii_mode
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MAC_MDIOCL22R@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_XGMAC_IOREAD
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_3
## %bb.2:
	movq	_XGMAC_MAX_C22_PORT@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jae	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	btsl	%r14d, %eax
LBB0_5:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_XGMAC_IOWRITE
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_MDIOCL22R,4,2              ## @MAC_MDIOCL22R
	.comm	_XGMAC_MAX_C22_PORT,4,2         ## @XGMAC_MAX_C22_PORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xgbe_set_ext_mii_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_set_ext_mii_mode
_xgbe_set_ext_mii_mode:                 ; @xgbe_set_ext_mii_mode
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MAC_MDIOCL22R@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC_MDIOCL22R@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_XGMAC_IOREAD
	mov	x2, x0
	cmp	w21, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _XGMAC_MAX_C22_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XGMAC_MAX_C22_PORT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.hs	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	w8, #1
	lsl	w8, w8, w20
	orr	w2, w2, w8
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_XGMAC_IOWRITE
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_MDIOCL22R,4,2              ; @MAC_MDIOCL22R
	.comm	_XGMAC_MAX_C22_PORT,4,2         ; @XGMAC_MAX_C22_PORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xgbe_set_ext_mii_mode
.subsections_via_symbols
