	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_mii_ioctl
_igb_mii_ioctl:                         ## @igb_mii_ioctl
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_if_mii
	movq	(%r15), %rcx
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.1:
	cmpl	$129, %r14d
	je	LBB0_4
## %bb.2:
	cmpl	$130, %r14d
	jne	LBB0_7
## %bb.3:
	movl	8(%r15), %ecx
	movl	%ecx, 8(%rax)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rax), %esi
	andl	$31, %esi
	addq	$4, %rax
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_igb_read_phy_reg
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_igb_mii_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_mii_ioctl
_igb_mii_ioctl:                         ; @igb_mii_ioctl
	.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	x20, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x21
	bl	_if_mii
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x2, x0
	cmp	w20, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w20, #130
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldr	w8, [x19, #8]
	str	w8, [x2, #8]
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_7:
	ldr	w8, [x2], #4
	and	w1, w8, #0x1f
	mov	x0, x19
	bl	_igb_read_phy_reg
	cbz	w0, LBB0_6
; %bb.8:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_igb_mii_ioctl
.subsections_via_symbols
