	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmtcp_ioctl
_atmtcp_ioctl:                          ## @atmtcp_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_ATM_SD
	movq	%rax, %r12
	leal	-128(%r13), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.3:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$130, %r13d
	je	LBB0_11
## %bb.6:
	cmpl	$129, %r13d
	je	LBB0_12
## %bb.7:
	xorl	%ebx, %ebx
	cmpl	$128, %r13d
	jne	LBB0_10
## %bb.8:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_atmtcp_attach
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___module_get
	jmp	LBB0_10
LBB0_1:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atmtcp_create_persistent       ## TAILCALL
LBB0_12:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atmtcp_remove_persistent       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_SS_CONNECTED,4,2               ## @SS_CONNECTED
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_atmtcp_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmtcp_ioctl
_atmtcp_ioctl:                          ; @atmtcp_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ATM_SD
	sub	w8, w21, #128
	cmp	w8, #3
	b.hs	LBB0_7
; %bb.1:
	mov	x22, 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_8
; %bb.2:
	cmp	w21, #130
	b.eq	LBB0_11
; %bb.3:
	cmp	w21, #129
	b.eq	LBB0_12
; %bb.4:
	cmp	w21, #128
	b.ne	LBB0_13
; %bb.5:
	mov	x0, x22
	mov	x1, x20
	bl	_atmtcp_attach
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh3:
	adrp	x8, _SS_CONNECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SS_CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh6:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	___module_get
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, 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
	ret
LBB0_11:
	mov	x0, 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	_atmtcp_create_persistent
LBB0_12:
	mov	x0, 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	_atmtcp_remove_persistent
LBB0_13:
	mov	w20, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_SS_CONNECTED,4,2               ; @SS_CONNECTED
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_atmtcp_ioctl
.subsections_via_symbols
