	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_ioctl
_do_ioctl:                              ## @do_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_if_mii
	movq	%rax, %r12
	movl	4(%rbx), %esi
	movl	(%r13), %edx
	movl	(%rax), %r8d
	movl	4(%rax), %r9d
	movl	8(%rax), %eax
	movl	12(%r12), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %ecx
	pushq	%rbx
	pushq	%rax
	callq	_pr_debug
	addq	$16, %rsp
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.1:
	cmpl	$128, %r15d
	je	LBB0_6
## %bb.2:
	cmpl	$130, %r15d
	je	LBB0_7
## %bb.3:
	cmpl	$129, %r15d
	jne	LBB0_5
## %bb.4:
	movl	(%r12), %esi
	andl	$31, %esi
	jmp	LBB0_8
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_6:
	movl	(%r12), %esi
	movl	4(%r12), %edx
	andl	$31, %esi
	andl	$31, %edx
	movl	8(%r12), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$16, %r8d
	callq	_mii_wr
	jmp	LBB0_9
LBB0_7:
	movl	$0, (%r12)
	xorl	%esi, %esi
LBB0_8:
	movl	4(%r12), %edx
	andl	$31, %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_mii_rd
	movl	%eax, 12(%r12)
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ioctl(%-.6s, %#04x) %04x %04x %04x %04x\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_do_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_ioctl
_do_ioctl:                              ; @do_ioctl
	.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	x22, x1
	mov	x23, x0
	bl	_netdev_priv
	mov	x24, x0
	ldr	w19, [x23]
	mov	x0, x22
	bl	_if_mii
	mov	x20, x0
	ldr	w1, [x23, #4]
	ldr	w2, [x22]
	ldp	w4, w5, [x0]
	ldp	w6, w7, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	bl	_pr_debug
	ldr	w8, [x24]
	cbz	w8, LBB0_5
; %bb.1:
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x20]
	and	w1, w8, #0x1f
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	ldp	w8, w9, [x20]
	and	w1, w8, #0x1f
	and	w2, w9, #0x1f
	ldr	w3, [x20, #8]
	mov	x0, x19
	mov	w4, #16
	bl	_mii_wr
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	mov	w1, #0
	str	wzr, [x20]
LBB0_8:
	ldr	w8, [x20, #4]
	and	w2, w8, #0x1f
	mov	x0, x19
	bl	_mii_rd
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20, #12]
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ioctl(%-.6s, %#04x) %04x %04x %04x %04x\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_do_ioctl
.subsections_via_symbols
