	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmtcp_create
_atmtcp_create:                         ## @atmtcp_create
	.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, %r15d
	movl	%edi, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_DEV_LABEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_atmtcp_v_dev_ops@GOTPCREL(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_atm_dev_register
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rax, %r15
	movq	_MAX_VPI_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_MAX_VCI_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%rbx, (%r15)
	movq	%r15, %rdi
	callq	_PRIV
	movq	$0, 8(%rax)
	movq	%r15, %rdi
	callq	_PRIV
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	%r15, (%r14)
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	callq	_kfree
	cmpl	$-1, %r12d
	jne	LBB0_3
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DEV_LABEL,4,2                  ## @DEV_LABEL
	.comm	_atmtcp_v_dev_ops,4,2           ## @atmtcp_v_dev_ops
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MAX_VPI_BITS,4,2               ## @MAX_VPI_BITS
	.comm	_MAX_VCI_BITS,4,2               ## @MAX_VCI_BITS
	.no_dead_strip	_atmtcp_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmtcp_create
_atmtcp_create:                         ; @atmtcp_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _DEV_LABEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEV_LABEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, _atmtcp_v_dev_ops@GOTPAGE
Lloh7:
	ldr	x1, [x1, _atmtcp_v_dev_ops@GOTPAGEOFF]
	mov	x2, x21
	mov	x3, #0
	bl	_atm_dev_register
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
Lloh8:
	adrp	x8, _MAX_VPI_BITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_VPI_BITS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MAX_VCI_BITS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAX_VCI_BITS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	str	x22, [x0]
	bl	_PRIV
	str	xzr, [x0, #8]
	mov	x0, x23
	bl	_PRIV
	str	w20, [x0]
	mov	w0, #0
	cbz	x19, LBB0_7
; %bb.3:
	str	x23, [x19]
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, x22
	bl	_kfree
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	adrp	x9, _EBUSY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
	cmn	w21, #1
	csel	x8, x8, x9, eq
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DEV_LABEL,4,2                  ; @DEV_LABEL
	.comm	_atmtcp_v_dev_ops,4,2           ; @atmtcp_v_dev_ops
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MAX_VPI_BITS,4,2               ; @MAX_VPI_BITS
	.comm	_MAX_VCI_BITS,4,2               ; @MAX_VCI_BITS
	.no_dead_strip	_atmtcp_create
.subsections_via_symbols
