	.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	%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.2:
	movl	(%r15), %esi
	leaq	-152(%rbp), %rdi
	movl	$120, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_3
LBB0_27:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_28
LBB0_3:
	movl	-152(%rbp), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_1
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_CAP_SYS_RAWIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:
	movl	-80(%rbp), %eax
	movl	%eax, 24(%r12)
	movq	$0, 16(%r12)
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_1:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
LBB0_28:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_29:
	addq	$128, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_6
## %bb.20:
	movq	%r12, %rdi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_6
## %bb.21:
	movq	-128(%rbp), %rax
	movb	$0, 7(%rax)
	movq	-128(%rbp), %rsi
	movq	%r14, %rdi
	callq	_baycom_setmode
	jmp	LBB0_29
LBB0_5:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	-36(%rbp), %eax
	movl	%eax, 56(%r14)
	movups	-52(%rbp), %xmm0
	movups	%xmm0, 40(%r14)
	movl	$1, 28(%r14)
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_13:
	movl	(%r14), %eax
	movq	_EPP_PTTBIT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, -120(%rbp)
	movq	_EPP_DCDBIT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	sete	%dl
	movl	%edx, -116(%rbp)
	movl	36(%r14), %eax
	movl	%eax, -112(%rbp)
	jmp	LBB0_25
LBB0_23:
	movq	_HDLCDRV_PARMASK_IOBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_29
LBB0_22:
	movq	-128(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_17
LBB0_12:
	movl	(%r14), %eax
	movq	_EPP_PTTBIT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, -108(%rbp)
	movq	_EPP_DCDBIT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	sete	%dl
	movl	%edx, -104(%rbp)
	movl	36(%r14), %eax
	movl	%eax, -84(%rbp)
	movups	(%r12), %xmm0
	movups	%xmm0, -100(%rbp)
	jmp	LBB0_25
LBB0_8:
	movl	24(%r12), %eax
	movl	%eax, -80(%rbp)
	movl	20(%r12), %eax
	movl	%eax, -56(%rbp)
	movl	16(%r12), %eax
	movl	%eax, -60(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -76(%rbp)
	jmp	LBB0_25
LBB0_18:
	movq	-128(%rbp), %rdi
	cmpl	$0, 20(%r14)
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rax
	movq	%rax, %rdx
	cmoveq	%rcx, %rdx
	cmpl	$0, 16(%r14)
	cmoveq	%rax, %rcx
	movl	8(%r14), %r8d
	movl	12(%r14), %r9d
	cmpl	$0, 24(%r14)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%rsi, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	jmp	LBB0_25
LBB0_24:
	movl	56(%r14), %eax
	movl	%eax, -36(%rbp)
	movups	40(%r14), %xmm0
	movups	%xmm0, -52(%rbp)
	jmp	LBB0_25
LBB0_16:
	movq	-136(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_17:
	movl	$8, %edx
	callq	_strncpy
LBB0_25:
	movl	(%r15), %edi
	leaq	-152(%rbp), %rsi
	movl	$120, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_14:
	movq	_CAP_SYS_RAWIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_6
## %bb.15:
	movl	4(%r14), %eax
	imull	-144(%rbp), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 32(%r14)
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_6:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_19
	.long	L0_0_set_5
	.long	L0_0_set_13
	.long	L0_0_set_23
	.long	L0_0_set_22
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_18
	.long	L0_0_set_24
	.long	L0_0_set_16
	.long	L0_0_set_14
	.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	_EPP_PTTBIT,4,2                 ## @EPP_PTTBIT
	.comm	_EPP_DCDBIT,4,2                 ## @EPP_DCDBIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"baycom_epp"

L_.str.1:                               ## @.str.1
	.asciz	"%sclk,%smodem,fclk=%d,bps=%d%s"

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

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

L_.str.4:                               ## @.str.4
	.asciz	",loopback"

L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	"intclk,extclk,intmodem,extmodem,divider=x"

	.comm	_HDLCDRV_PARMASK_IOBASE,4,2     ## @HDLCDRV_PARMASK_IOBASE
	.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, #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
Lloh0:
	adrp	x8, _SIOCDEVPRIVATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCDEVPRIVATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w1, [x19]
	add	x0, sp, #8
	mov	w2, #120
	bl	_copy_from_user
	cbz	x0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	ldr	w8, [sp, #8]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_8
; %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, _CAP_SYS_RAWIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAP_SYS_RAWIO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_28
; %bb.6:
	mov	x0, x21
	bl	_netif_running
	cbnz	w0, LBB0_28
; %bb.7:
	ldr	w8, [sp, #80]
	str	w8, [x21, #24]
	str	xzr, [x21, #16]
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
Lloh12:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_28
; %bb.12:
	mov	x0, x21
	bl	_netif_running
	cbnz	w0, LBB0_28
; %bb.13:
	ldr	x8, [sp, #32]
	strb	wzr, [x8, #7]
	ldr	x1, [sp, #32]
	mov	x0, x20
	bl	_baycom_setmode
	b	LBB0_10
LBB0_14:
Lloh15:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_28
; %bb.15:
	mov	w0, #0
	ldr	w8, [sp, #124]
	str	w8, [x20, #56]
	ldur	q0, [sp, #108]
	stur	q0, [x20, #40]
	mov	w8, #1
	str	w8, [x20, #28]
	b	LBB0_10
LBB0_16:
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _EPP_PTTBIT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EPP_PTTBIT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
Lloh21:
	adrp	x10, _EPP_DCDBIT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _EPP_DCDBIT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, eq
	stp	w9, w8, [sp, #40]
	ldr	w8, [x20, #36]
	str	w8, [sp, #48]
	b	LBB0_25
LBB0_17:
Lloh24:
	adrp	x8, _HDLCDRV_PARMASK_IOBASE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDLCDRV_PARMASK_IOBASE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_18:
	ldr	x0, [sp, #32]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_24
LBB0_19:
	ldr	w8, [x20]
Lloh29:
	adrp	x9, _EPP_PTTBIT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _EPP_PTTBIT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
Lloh32:
	adrp	x10, _EPP_DCDBIT@GOTPAGE
Lloh33:
	ldr	x10, [x10, _EPP_DCDBIT@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, eq
	stp	w9, w8, [sp, #52]
	ldr	w8, [x20, #36]
	str	w8, [sp, #76]
	ldr	q0, [x21]
	stur	q0, [sp, #60]
	b	LBB0_25
LBB0_20:
	ldr	w8, [x21, #24]
	str	w8, [sp, #80]
	ldr	d0, [x21, #16]
	stur	d0, [sp, #100]
	stur	xzr, [sp, #92]
	stur	xzr, [sp, #84]
	b	LBB0_25
LBB0_21:
Lloh35:
	adrp	x8, l_.str.2@PAGE
Lloh36:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	x0, [sp, #32]
Lloh37:
	adrp	x9, l_.str.3@PAGE
Lloh38:
	add	x9, x9, l_.str.3@PAGEOFF
	ldp	w11, w10, [x20, #16]
	cmp	w10, #0
	csel	x2, x9, x8, eq
	cmp	w11, #0
	csel	x3, x8, x9, eq
	ldp	w4, w5, [x20, #8]
	ldr	w8, [x20, #24]
Lloh39:
	adrp	x9, l_.str.4@PAGE
Lloh40:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh41:
	adrp	x10, l_.str.5@PAGE
Lloh42:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w8, #0
	csel	x6, x10, x9, eq
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
	b	LBB0_25
LBB0_22:
	ldr	w8, [x20, #56]
	str	w8, [sp, #124]
	ldur	q0, [x20, #40]
	stur	q0, [sp, #108]
	b	LBB0_25
LBB0_23:
	ldr	x0, [sp, #24]
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
LBB0_24:
	mov	w2, #8
	bl	_strncpy
LBB0_25:
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #120
	bl	_copy_to_user
	cbnz	x0, LBB0_2
	b	LBB0_10
LBB0_26:
Lloh47:
	adrp	x8, _CAP_SYS_RAWIO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CAP_SYS_RAWIO@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_28
; %bb.27:
	mov	w0, #0
	ldr	w8, [sp, #16]
	ldr	w9, [x20, #4]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x20, #32]
	b	LBB0_10
LBB0_28:
Lloh50:
	adrp	x8, _EACCES@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
	.byte	(LBB0_17-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
	.byte	(LBB0_22-LBB0_5)>>2
	.byte	(LBB0_23-LBB0_5)>>2
	.byte	(LBB0_26-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	_EPP_PTTBIT,4,2                 ; @EPP_PTTBIT
	.comm	_EPP_DCDBIT,4,2                 ; @EPP_DCDBIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"baycom_epp"

l_.str.1:                               ; @.str.1
	.asciz	"%sclk,%smodem,fclk=%d,bps=%d%s"

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

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

l_.str.4:                               ; @.str.4
	.asciz	",loopback"

l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	"intclk,extclk,intmodem,extmodem,divider=x"

	.comm	_HDLCDRV_PARMASK_IOBASE,4,2     ; @HDLCDRV_PARMASK_IOBASE
	.no_dead_strip	_baycom_ioctl
.subsections_via_symbols
