	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdla_ioctl
_sdla_ioctl:                            ## @sdla_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_netdev_priv
	cmpl	$0, 8(%rax)
	je	LBB0_3
## %bb.4:
	leal	-128(%rbx), %ecx
	cmpl	$9, %ecx
	ja	LBB0_19
## %bb.5:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_15:
	movq	_CAP_SYS_RAWIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.16:
	movl	(%r14), %esi
	xorl	%edx, %edx
	cmpl	$131, %ebx
	sete	%dl
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdla_xfer                      ## TAILCALL
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_20:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %esi
	xorl	%edx, %edx
	cmpl	$137, %ebx
	sete	%dl
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdla_config                    ## TAILCALL
LBB0_19:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_18:
	movq	%r15, %rdi
	callq	_sdla_stop
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_17:
	movq	%r15, %rdi
	callq	_sdla_start
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_9:
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_EALREADY@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_7:
	movl	4(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdla_cpuspeed                  ## TAILCALL
LBB0_14:
	movq	%r15, %rdi
	callq	_sdla_clear
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_11:
	cmpl	$138, 4(%r14)
	jne	LBB0_13
## %bb.12:
	movl	$138, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_13:
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_ENOPROTOOPT,4,2                ## @ENOPROTOOPT
	.comm	_CAP_SYS_RAWIO,4,2              ## @CAP_SYS_RAWIO
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_sdla_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdla_ioctl
_sdla_ioctl:                            ; @sdla_ioctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_netdev_priv
	ldr	w9, [x0, #8]
	cbz	w9, LBB0_7
; %bb.2:
	sub	w9, w21, #128
	cmp	w9, #9
	b.hi	LBB0_11
; %bb.3:
	mov	x8, x0
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
Lloh5:
	adrp	x8, _CAP_SYS_RAWIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAP_SYS_RAWIO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w1, [x20]
	cmp	w21, #131
	cset	w2, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sdla_xfer
LBB0_6:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w1, [x20]
	cmp	w21, #137
	cset	w2, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sdla_config
LBB0_11:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_12:
	mov	x0, x19
	bl	_sdla_stop
	mov	w0, #0
	b	LBB0_9
LBB0_13:
	mov	x0, x19
	bl	_sdla_start
	mov	w0, #0
	b	LBB0_9
LBB0_14:
	ldr	w8, [x8]
	cbz	w8, LBB0_19
; %bb.15:
Lloh14:
	adrp	x8, _EALREADY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_8
LBB0_16:
	mov	w0, #0
	ldr	w8, [x8, #4]
	str	w8, [x20, #4]
	b	LBB0_9
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sdla_cpuspeed
LBB0_18:
	mov	x0, x19
	bl	_sdla_clear
	mov	w0, #0
	b	LBB0_9
LBB0_19:
	ldr	w8, [x20, #4]
	cmp	w8, #138
	b.ne	LBB0_21
; %bb.20:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_9
LBB0_21:
Lloh16:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_ENOPROTOOPT,4,2                ; @ENOPROTOOPT
	.comm	_CAP_SYS_RAWIO,4,2              ; @CAP_SYS_RAWIO
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_sdla_ioctl
.subsections_via_symbols
