	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_eiface_ioctl
_ng_eiface_ioctl:                       ## @ng_eiface_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %ecx
	leal	-128(%rcx), %esi
	cmpl	$8, %esi
	ja	LBB0_8
## %bb.1:
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %r8
	movslq	(%r8,%rsi,4), %rsi
	addq	%r8, %rsi
	jmpq	*%rsi
LBB0_2:
	popq	%rbp
	retq
LBB0_3:
	movslq	12(%rdi), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	popq	%rbp
	jmp	_ifmedia_ioctl                  ## TAILCALL
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movl	(%rdx), %ecx
	movq	_NG_EIFACE_MTU_MAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_8
## %bb.6:
	movq	_NG_EIFACE_MTU_MIN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_8
## %bb.7:
	movl	%ecx, 8(%rdi)
	popq	%rbp
	retq
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_10:
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rdi), %ecx
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%esi, (%rdi)
	je	LBB0_14
## %bb.11:
	testl	%ecx, %edx
	jne	LBB0_2
## %bb.12:
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	notl	%esi
	andl	%esi, %ecx
	orl	%edx, %ecx
	jmp	LBB0_16
LBB0_13:
	movl	$132, %esi
	popq	%rbp
	jmp	_ether_ioctl                    ## TAILCALL
LBB0_14:
	testl	%ecx, %edx
	je	LBB0_2
## %bb.15:
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	notl	%edx
	andl	%edx, %ecx
LBB0_16:
	movl	%ecx, 4(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.comm	_NG_EIFACE_MTU_MAX,4,2          ## @NG_EIFACE_MTU_MAX
	.comm	_NG_EIFACE_MTU_MIN,4,2          ## @NG_EIFACE_MTU_MIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ng_eiface_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_eiface_ioctl
_ng_eiface_ioctl:                       ; @ng_eiface_ioctl
	.cfi_startproc
; %bb.0:
	sub	w9, w1, #128
	cmp	w9, #8
	b.hi	LBB0_6
; %bb.1:
	mov	w8, #0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	x0, x8
	ret
LBB0_3:
	mov	x3, x1
	ldrsw	x8, [x0, #12]
	mov	x1, x2
	mov	x2, x8
	b	_ifmedia_ioctl
LBB0_4:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w9, [x2]
Lloh4:
	adrp	x8, _NG_EIFACE_MTU_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NG_EIFACE_MTU_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x10, _NG_EIFACE_MTU_MIN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _NG_EIFACE_MTU_MIN@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w9, w10, #8, le
	b.ge	LBB0_12
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	mov	x0, x8
	ret
LBB0_8:
Lloh12:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x8]
	ldp	w12, w9, [x0]
Lloh15:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x8]
	and	w8, w10, w9
	tst	w11, w12
	b.eq	LBB0_13
; %bb.9:
	cbz	w8, LBB0_15
; %bb.10:
	mov	w0, #0
	ret
LBB0_11:
	mov	w1, #132
	b	_ether_ioctl
LBB0_12:
	str	w9, [x0, #8]
	mov	w0, #0
	ret
LBB0_13:
	cbz	w8, LBB0_2
; %bb.14:
Lloh18:
	adrp	x11, _IFF_DRV_OACTIVE@GOTPAGE
Lloh19:
	ldr	x11, [x11, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	orr	w10, w11, w10
	bic	w9, w9, w10
	str	w9, [x0, #4]
	mov	w0, #0
	ret
LBB0_15:
Lloh21:
	adrp	x11, _IFF_DRV_OACTIVE@GOTPAGE
Lloh22:
	ldr	x11, [x11, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	bic	w9, w9, w11
	orr	w9, w9, w10
	str	w9, [x0, #4]
	mov	x0, x8
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.comm	_NG_EIFACE_MTU_MAX,4,2          ; @NG_EIFACE_MTU_MAX
	.comm	_NG_EIFACE_MTU_MIN,4,2          ; @NG_EIFACE_MTU_MIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ng_eiface_ioctl
.subsections_via_symbols
