	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function baycom_ioctl
_baycom_ioctl:                          ## @baycom_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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	16(%rax), %rax
	movq	_HDLCDRV_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUG_ON
	movq	_SIOCDEVPRIVATE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_8
## %bb.2:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_19
LBB0_5:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_7:
	movl	(%r14), %esi
	leaq	-72(%rbp), %rdi
	movl	$32, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	jne	LBB0_16
LBB0_8:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_9:
	movq	_HDLCDRV_PARMASK_IOBASE@GOTPCREL(%rip), %rcx
	movq	_HDLCDRV_PARMASK_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	jmp	LBB0_18
LBB0_10:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_11
LBB0_13:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movl	(%r12), %eax
	testl	%eax, %eax
	jg	LBB0_11
## %bb.14:
	movq	8(%r15), %rdi
	cmpl	$-2, %eax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rcx, %rdx
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rdx, %rsi
	callq	_strcat
LBB0_11:
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	$32, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	je	LBB0_12
LBB0_16:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_19:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_5
## %bb.20:
	movq	8(%r15), %rax
	movb	$0, 7(%rax)
	movq	8(%r15), %rsi
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_baycom_setmode                 ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HDLCDRV_MAGIC,8,3              ## @HDLCDRV_MAGIC
	.comm	_SIOCDEVPRIVATE,4,2             ## @SIOCDEVPRIVATE
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ser12"

L_.str.1:                               ## @.str.1
	.asciz	"*"

L_.str.2:                               ## @.str.2
	.asciz	"@"

L_.str.3:                               ## @.str.3
	.asciz	"+"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_HDLCDRV_PARMASK_IOBASE,4,2     ## @HDLCDRV_PARMASK_IOBASE
	.comm	_HDLCDRV_PARMASK_IRQ,4,2        ## @HDLCDRV_PARMASK_IRQ
	.no_dead_strip	_baycom_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function baycom_ioctl
_baycom_ioctl:                          ; @baycom_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_6
; %bb.1:
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _HDLCDRV_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDLCDRV_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
Lloh3:
	adrp	x8, _SIOCDEVPRIVATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCDEVPRIVATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.3:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	x0, x22
	bl	_netif_running
	cbz	w0, LBB0_17
LBB0_5:
Lloh8:
	adrp	x8, _EACCES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	ldr	w1, [x20]
	mov	x0, sp
	mov	w2, #32
	bl	_copy_from_user
	cbnz	x0, LBB0_14
LBB0_8:
Lloh12:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh14:
	adrp	x8, _HDLCDRV_PARMASK_IOBASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDLCDRV_PARMASK_IOBASE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _HDLCDRV_PARMASK_IRQ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HDLCDRV_PARMASK_IRQ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_16
LBB0_10:
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	b	LBB0_13
LBB0_11:
	ldr	x0, [x19, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	w8, [x21]
	cmp	w8, #0
	b.gt	LBB0_13
; %bb.12:
	ldr	x0, [x19, #8]
Lloh24:
	adrp	x9, l_.str.3@PAGE
Lloh25:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh26:
	adrp	x10, l_.str.2@PAGE
Lloh27:
	add	x10, x10, l_.str.2@PAGEOFF
	cmn	w8, #2
	csel	x9, x10, x9, eq
Lloh28:
	adrp	x10, l_.str.1@PAGE
Lloh29:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
	bl	_strcat
LBB0_13:
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #32
	bl	_copy_to_user
	cbz	x0, LBB0_16
LBB0_14:
Lloh30:
	adrp	x8, _EFAULT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
Lloh32:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_5
; %bb.18:
	ldr	x8, [x19, #8]
	strb	wzr, [x8, #7]
	ldr	x1, [x19, #8]
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_baycom_setmode
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HDLCDRV_MAGIC,8,3              ; @HDLCDRV_MAGIC
	.comm	_SIOCDEVPRIVATE,4,2             ; @SIOCDEVPRIVATE
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ser12"

l_.str.1:                               ; @.str.1
	.asciz	"*"

l_.str.2:                               ; @.str.2
	.asciz	"@"

l_.str.3:                               ; @.str.3
	.asciz	"+"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_HDLCDRV_PARMASK_IOBASE,4,2     ; @HDLCDRV_PARMASK_IOBASE
	.comm	_HDLCDRV_PARMASK_IRQ,4,2        ; @HDLCDRV_PARMASK_IRQ
	.no_dead_strip	_baycom_ioctl
.subsections_via_symbols
