	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbni_ioctl
_sbni_ioctl:                            ## @sbni_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_netdev_priv
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_5
## %bb.1:
	movq	%rax, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	movq	%r14, %r12
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movups	4(%r13), %xmm0
	movups	20(%r13), %xmm1
	movaps	%xmm1, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	xorl	%ebx, %ebx
	cmpl	$0, -64(%rbp)
	jne	LBB0_16
## %bb.4:
	movq	_DEF_RXL_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DEF_RXL@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	addq	$32, %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_15
LBB0_8:
	movslq	16(%r15), %rax
	movl	3(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	20(%r14), %eax
	movl	%eax, -60(%rbp)
	movq	_FL_SLOW_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r14), %eax
	setne	%cl
	movl	%ecx, -80(%rbp)
	movq	8(%r14), %rax
	movq	%rax, -72(%rbp)
	xorl	%eax, %eax
	cmpl	$0, 28(%r14)
	sete	%al
	movl	%eax, -64(%rbp)
	movl	(%r13), %edi
	leaq	-80(%rbp), %rsi
	movl	$32, %edx
	jmp	LBB0_9
LBB0_11:
	movl	(%r13), %edi
	addq	$32, %r14
	movq	%r14, %rsi
	movl	$4, %edx
LBB0_9:
	callq	_copy_to_user
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_16:
	leaq	-72(%rbp), %rcx
	xorl	%eax, %eax
LBB0_17:
	movq	(%rcx), %rcx
	movl	%eax, 28(%r14)
	movq	%rcx, 8(%r14)
	movq	_rxl_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 24(%r14)
	movl	-60(%rbp), %edi
	movl	%edi, 20(%r14)
	movq	_PR_RES@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_CSR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_outb
	movq	%r12, %rdi
	callq	_spin_unlock
	jmp	LBB0_15
	.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_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_FL_SLOW_MODE,4,2               ## @FL_SLOW_MODE
	.comm	_DEF_RXL_DELTA,4,2              ## @DEF_RXL_DELTA
	.comm	_DEF_RXL,8,3                    ## @DEF_RXL
	.comm	_rxl_tab,8,3                    ## @rxl_tab
	.comm	_PR_RES,4,2                     ## @PR_RES
	.comm	_CSR1,8,3                       ## @CSR1
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_init_net,4,2                   ## @init_net
	.no_dead_strip	_sbni_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbni_ioctl
_sbni_ioctl:                            ; @sbni_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.1:
	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, _CAP_NET_ADMIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_10
; %bb.3:
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock
	ldur	q0, [x21, #20]
	ldur	q1, [x21, #4]
	stp	q1, q0, [sp]
	ldr	w8, [sp, #16]
Lloh5:
	adrp	x9, _DEF_RXL_DELTA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DEF_RXL_DELTA@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mov	x10, sp
	orr	x10, x10, #0x8
	cmp	w8, #0
	csel	w8, w9, wzr, eq
Lloh8:
	adrp	x9, _DEF_RXL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DEF_RXL@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	str	w8, [x19, #28]
	str	x9, [x19, #8]
Lloh10:
	adrp	x8, _rxl_tab@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rxl_tab@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [sp, #20]
	stp	w9, w8, [x19, #20]
Lloh13:
	adrp	x8, _PR_RES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PR_RES@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w0, w8, w9
	ldr	x8, [x20, #8]
Lloh16:
	adrp	x9, _CSR1@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CSR1@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	mov	x0, x22
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_12
LBB0_4:
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh21:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_10
; %bb.6:
	add	x0, x19, #32
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	ldrsw	x8, [x20, #16]
	ldur	w8, [x8, #3]
	str	w8, [sp, #24]
	ldr	w8, [x19, #20]
	str	w8, [sp, #20]
Lloh24:
	adrp	x8, _FL_SLOW_MODE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FL_SLOW_MODE@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, ne
	str	w8, [sp]
	ldr	x8, [x19, #8]
	str	x8, [sp, #8]
	ldr	w8, [x19, #28]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [sp, #16]
	ldr	w0, [x21]
	mov	x1, sp
	mov	w2, #32
	bl	_copy_to_user
	cbnz	w0, LBB0_9
	b	LBB0_12
LBB0_8:
	ldr	w0, [x21]
	add	x1, x19, #32
	mov	w2, #4
	bl	_copy_to_user
	cbz	w0, LBB0_12
LBB0_9:
Lloh27:
	adrp	x8, _EFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh29:
	adrp	x8, _EPERM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.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
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_FL_SLOW_MODE,4,2               ; @FL_SLOW_MODE
	.comm	_DEF_RXL_DELTA,4,2              ; @DEF_RXL_DELTA
	.comm	_DEF_RXL,8,3                    ; @DEF_RXL
	.comm	_rxl_tab,8,3                    ; @rxl_tab
	.comm	_PR_RES,4,2                     ; @PR_RES
	.comm	_CSR1,8,3                       ; @CSR1
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_init_net,4,2                   ; @init_net
	.no_dead_strip	_sbni_ioctl
.subsections_via_symbols
