	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_iface_ioctl
_ng_iface_ioctl:                        ## @ng_iface_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rcx, %rsi
	jmpq	*%rsi
LBB0_2:
	popq	%rbp
	retq
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movl	4(%rdx), %ecx
	movq	_NG_IFACE_MTU_MAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_7
## %bb.5:
	movq	_NG_IFACE_MTU_MIN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_7
## %bb.6:
	movl	%ecx, 8(%rdi)
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	4(%rdi), %ecx
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%r8d, (%rdx)
	je	LBB0_13
## %bb.10:
	testl	%ecx, %esi
	jne	LBB0_2
## %bb.11:
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
	orl	%esi, %ecx
	jmp	LBB0_15
LBB0_12:
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rdi)
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	movl	4(%rdi), %edx
	orl	(%rcx), %edx
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%edx, %ecx
	jmp	LBB0_15
LBB0_13:
	testl	%ecx, %esi
	je	LBB0_2
## %bb.14:
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	notl	%esi
	andl	%esi, %ecx
LBB0_15:
	movl	%ecx, 4(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_12
	.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_IFACE_MTU_MAX,4,2           ## @NG_IFACE_MTU_MAX
	.comm	_NG_IFACE_MTU_MIN,4,2           ## @NG_IFACE_MTU_MIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ng_iface_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_iface_ioctl
_ng_iface_ioctl:                        ; @ng_iface_ioctl
	.cfi_startproc
; %bb.0:
	sub	w9, w1, #128
	cmp	w9, #6
	b.hi	LBB0_5
; %bb.1:
	mov	x8, x0
	mov	w0, #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:
	ret
LBB0_3:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	w9, [x2, #4]
Lloh5:
	adrp	x10, _NG_IFACE_MTU_MAX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NG_IFACE_MTU_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _NG_IFACE_MTU_MIN@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NG_IFACE_MTU_MIN@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	w9, w10
	ccmp	w9, w11, #8, le
	b.ge	LBB0_10
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ret
LBB0_6:
	ldr	w12, [x2]
Lloh14:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x9]
	ldr	w9, [x8, #4]
Lloh17:
	adrp	x10, _IFF_DRV_RUNNING@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	and	w11, w10, w9
	tst	w13, w12
	b.eq	LBB0_11
; %bb.7:
	mov	w0, #0
	cbnz	w11, LBB0_2
; %bb.8:
Lloh20:
	adrp	x11, _IFF_DRV_OACTIVE@GOTPAGE
Lloh21:
	ldr	x11, [x11, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	bic	w9, w9, w11
	orr	w9, w9, w10
	str	w9, [x8, #4]
	ret
LBB0_9:
	mov	w0, #0
Lloh23:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldp	w10, w11, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
Lloh26:
	adrp	x9, _IFF_DRV_RUNNING@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w9, w11, w9
Lloh29:
	adrp	x10, _IFF_DRV_OACTIVE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	b	LBB0_13
LBB0_10:
	mov	w0, #0
	str	w9, [x8, #8]
	ret
LBB0_11:
	mov	w0, #0
	cbz	w11, LBB0_2
; %bb.12:
Lloh32:
	adrp	x11, _IFF_DRV_OACTIVE@GOTPAGE
Lloh33:
	ldr	x11, [x11, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	orr	w10, w11, w10
LBB0_13:
	bic	w9, w9, w10
	str	w9, [x8, #4]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-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_IFACE_MTU_MAX,4,2           ; @NG_IFACE_MTU_MAX
	.comm	_NG_IFACE_MTU_MIN,4,2           ; @NG_IFACE_MTU_MIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ng_iface_ioctl
.subsections_via_symbols
