	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdlcdrv_ioctl
_hdlcdrv_ioctl:                         ## @hdlcdrv_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	%r12
	pushq	%rbx
	subq	$128, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_SIOCDEVPRIVATE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.4:
	movl	(%r15), %esi
	leaq	-160(%rbp), %rdi
	movl	$128, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_5
LBB0_30:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_5:
	movl	-160(%rbp), %eax
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_1
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_1:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	-160(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	callq	*%rax
	jmp	LBB0_32
LBB0_7:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
LBB0_31:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_32:
	addq	$128, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_CAP_SYS_RAWIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_10
## %bb.14:
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_10
## %bb.15:
	movl	-56(%rbp), %eax
	movl	%eax, 24(%r12)
	movl	-60(%rbp), %eax
	movl	%eax, 20(%r12)
	movl	-64(%rbp), %eax
	movl	%eax, 16(%r12)
	movups	-80(%rbp), %xmm0
	movups	%xmm0, 76(%r14)
	xorl	%eax, %eax
	jmp	LBB0_32
LBB0_9:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	-36(%rbp), %eax
	movl	%eax, 108(%r14)
	movups	-52(%rbp), %xmm0
	movups	%xmm0, 92(%r14)
	movl	$1, 60(%r14)
	xorl	%eax, %eax
	jmp	LBB0_32
LBB0_10:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_17:
	movq	%r14, %rdi
	callq	_hdlcdrv_ptt
	movq	%rax, -120(%rbp)
	movl	72(%r14), %eax
	movl	%eax, -124(%rbp)
	movl	68(%r14), %eax
	movl	%eax, -128(%rbp)
	jmp	LBB0_28
LBB0_16:
	movq	%r14, %rdi
	callq	_hdlcdrv_ptt
	movq	%rax, -88(%rbp)
	movl	72(%r14), %eax
	movl	%eax, -92(%rbp)
	movl	68(%r14), %eax
	movl	%eax, -96(%rbp)
	movups	(%r12), %xmm0
	movups	%xmm0, -112(%rbp)
	jmp	LBB0_28
LBB0_12:
	movl	24(%r12), %eax
	movl	%eax, -56(%rbp)
	movl	20(%r12), %eax
	movl	%eax, -60(%rbp)
	movl	16(%r12), %eax
	movl	%eax, -64(%rbp)
	movups	76(%r14), %xmm0
	movups	%xmm0, -80(%rbp)
	jmp	LBB0_28
LBB0_8:
	movl	108(%r14), %eax
	movl	%eax, -36(%rbp)
	movups	92(%r14), %xmm0
	movups	%xmm0, -52(%rbp)
	jmp	LBB0_28
LBB0_24:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movl	8(%rax), %esi
	testl	%esi, %esi
	je	LBB0_27
## %bb.26:
	movq	-144(%rbp), %rdi
	movl	$8, %edx
	callq	_strncpy
	jmp	LBB0_28
LBB0_18:
	movq	_CAP_SYS_RAWIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movl	56(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.22:
	movl	-152(%rbp), %esi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	cmpl	%eax, %esi
	jle	LBB0_23
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_27:
	movq	-144(%rbp), %rax
	movb	$0, (%rax)
LBB0_28:
	movl	(%r15), %edi
	leaq	-160(%rbp), %rsi
	movl	$128, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	xorl	%eax, %eax
	jmp	LBB0_32
LBB0_23:
	imull	%ecx, %esi
	leal	15(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	sarl	$4, %eax
	movl	%eax, 64(%r14)
	xorl	%eax, %eax
	jmp	LBB0_32
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_19
	.long	L0_0_set_24
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_SIOCDEVPRIVATE,4,2             ## @SIOCDEVPRIVATE
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_CAP_SYS_RAWIO,4,2              ## @CAP_SYS_RAWIO
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_hdlcdrv_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdlcdrv_ioctl
_hdlcdrv_ioctl:                         ; @hdlcdrv_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _SIOCDEVPRIVATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCDEVPRIVATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.1:
	ldr	w1, [x19]
	mov	x0, sp
	mov	w2, #128
	bl	_copy_from_user
	cbz	x0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
	ldr	w8, [sp]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_6
; %bb.4:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh7:
	adrp	x8, _EPERM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x2, sp
	mov	x0, x21
	mov	x1, x19
	mov	x3, x22
	blr	x8
	b	LBB0_11
LBB0_9:
Lloh9:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
Lloh11:
	adrp	x8, _CAP_SYS_RAWIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAP_SYS_RAWIO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_17
; %bb.13:
	mov	x0, x21
	bl	_netif_running
	cbnz	w0, LBB0_17
; %bb.14:
	ldr	w8, [sp, #104]
	str	w8, [x21, #24]
	ldr	d0, [sp, #96]
	str	d0, [x21, #16]
	ldr	q0, [sp, #80]
	stur	q0, [x20, #76]
	b	LBB0_11
LBB0_15:
Lloh14:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_17
; %bb.16:
	mov	w0, #0
	ldr	w8, [sp, #124]
	str	w8, [x20, #108]
	ldur	q0, [sp, #108]
	stur	q0, [x20, #92]
	mov	w8, #1
	str	w8, [x20, #60]
	b	LBB0_11
LBB0_17:
Lloh17:
	adrp	x8, _EACCES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_10
LBB0_18:
	mov	x0, x20
	bl	_hdlcdrv_ptt
	str	x0, [sp, #40]
	ldur	d0, [x20, #68]
	str	d0, [sp, #32]
	b	LBB0_30
LBB0_19:
	mov	x0, x20
	bl	_hdlcdrv_ptt
	str	x0, [sp, #72]
	ldur	d0, [x20, #68]
	str	d0, [sp, #64]
	ldr	q0, [x21]
	str	q0, [sp, #48]
	b	LBB0_30
LBB0_20:
	ldr	w8, [x21, #24]
	str	w8, [sp, #104]
	ldr	d0, [x21, #16]
	str	d0, [sp, #96]
	ldur	q0, [x20, #76]
	str	q0, [sp, #80]
	b	LBB0_30
LBB0_21:
	ldr	w8, [x20, #108]
	str	w8, [sp, #124]
	ldur	q0, [x20, #92]
	stur	q0, [sp, #108]
	b	LBB0_30
LBB0_22:
	ldr	x8, [x20]
	cbz	x8, LBB0_29
; %bb.23:
	ldr	w1, [x8, #8]
	cbz	w1, LBB0_29
; %bb.24:
	ldr	x0, [sp, #16]
	mov	w2, #8
	bl	_strncpy
	b	LBB0_30
LBB0_25:
Lloh19:
	adrp	x8, _CAP_SYS_RAWIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CAP_SYS_RAWIO@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_5
; %bb.26:
	ldr	w8, [x20, #56]
	cmp	w8, #0
	b.le	LBB0_28
; %bb.27:
	ldr	w9, [sp, #8]
Lloh22:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh23:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	sdiv	w10, w10, w8
	cmp	w9, w10
	b.le	LBB0_31
LBB0_28:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_29:
	ldr	x8, [sp, #16]
	strb	wzr, [x8]
LBB0_30:
	ldr	w0, [x19]
	mov	x1, sp
	mov	w2, #128
	bl	_copy_to_user
	cbnz	x0, LBB0_2
	b	LBB0_11
LBB0_31:
	mov	w0, #0
	mul	w8, w9, w8
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #4
	str	w8, [x20, #64]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_22-LBB0_5)>>2
	.byte	(LBB0_25-LBB0_5)>>2
                                        ; -- End function
	.comm	_SIOCDEVPRIVATE,4,2             ; @SIOCDEVPRIVATE
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_CAP_SYS_RAWIO,4,2              ; @CAP_SYS_RAWIO
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_hdlcdrv_ioctl
.subsections_via_symbols
