	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ether_ioctl                    ## -- Begin function ether_ioctl
	.p2align	4, 0x90
_ether_ioctl:                           ## @ether_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PRIV_NET_SETLANPCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movl	(%rbx), %eax
	cmpl	$8, %eax
	jl	LBB0_5
## %bb.4:
	movq	_IFNET_PCP_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
LBB0_5:
	movl	%eax, (%r14)
	movq	_ifnet_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IFNET_EVENT_PCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_EVENTHANDLER_INVOKE
	jmp	LBB0_12
LBB0_6:
	movl	4(%rbx), %eax
	movq	_ETHERMTU@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_8:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
	movl	8(%r14), %edi
	callq	*16(%r14)
	jmp	LBB0_12
LBB0_9:
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	callq	_IF_LLADDR
	movq	8(%rbx), %rsi
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_bcopy
	jmp	LBB0_12
LBB0_11:
	movl	%eax, 4(%r14)
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_ETHER_ADDR_LEN,4,2             ## @ETHER_ADDR_LEN
	.comm	_ETHERMTU,4,2                   ## @ETHERMTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_curthread,4,2                  ## @curthread
	.comm	_PRIV_NET_SETLANPCP,4,2         ## @PRIV_NET_SETLANPCP
	.comm	_IFNET_PCP_NONE,4,2             ## @IFNET_PCP_NONE
	.comm	_ifnet_event,4,2                ## @ifnet_event
	.comm	_IFNET_EVENT_PCP,4,2            ## @IFNET_EVENT_PCP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ether_ioctl                    ; -- Begin function ether_ioctl
	.p2align	2
_ether_ioctl:                           ; @ether_ioctl
	.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
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _curthread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _PRIV_NET_SETLANPCP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PRIV_NET_SETLANPCP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_priv_check
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _IFNET_PCP_NONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IFNET_PCP_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, #8
	ccmp	w8, w9, #4, ge
	b.ne	LBB0_6
; %bb.4:
	str	w8, [x19]
Lloh11:
	adrp	x8, _ifnet_event@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ifnet_event@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _IFNET_EVENT_PCP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IFNET_EVENT_PCP@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_EVENTHANDLER_INVOKE
	mov	w0, #0
	b	LBB0_11
LBB0_5:
	ldr	w8, [x20, #4]
Lloh17:
	adrp	x9, _ETHERMTU@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ETHERMTU@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_10
LBB0_6:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_7:
Lloh23:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w0, [x19, #8]
	blr	x8
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	ldr	w8, [x19]
	str	w8, [x20]
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_IF_LLADDR
	ldr	x1, [x20, #8]
Lloh26:
	adrp	x8, _ETHER_ADDR_LEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETHER_ADDR_LEN@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	bl	_bcopy
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	w0, #0
	str	w8, [x19, #4]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_ETHER_ADDR_LEN,4,2             ; @ETHER_ADDR_LEN
	.comm	_ETHERMTU,4,2                   ; @ETHERMTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_curthread,4,2                  ; @curthread
	.comm	_PRIV_NET_SETLANPCP,4,2         ; @PRIV_NET_SETLANPCP
	.comm	_IFNET_PCP_NONE,4,2             ; @IFNET_PCP_NONE
	.comm	_ifnet_event,4,2                ; @ifnet_event
	.comm	_IFNET_EVENT_PCP,4,2            ; @IFNET_EVENT_PCP
.subsections_via_symbols
