	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmtcp_v_open
_atmtcp_v_open:                         ## @atmtcp_v_open
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movswl	(%rdi), %ebx
	movl	4(%rdi), %r12d
	leaq	-72(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_AF_ATMPVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%ebx, %edi
	callq	_htons
	movq	%rax, -40(%rbp)
	movw	%bx, -64(%rbp)
	movl	%r12d, %edi
	callq	_htons
	movq	%rax, -48(%rbp)
	movl	%r12d, -60(%rbp)
	movq	_ATM_VPI_UNSPEC@GOTPCREL(%rip), %rax
	cmpw	(%rax), %bx
	je	LBB0_4
## %bb.1:
	movq	_ATM_VCI_UNSPEC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_4
## %bb.2:
	movq	_ATMTCP_CTRL_OPEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -68(%rbp)
	movl	12(%r14), %eax
	movl	%eax, -72(%rbp)
	movq	_ATM_VF_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_ATM_VF_READY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movl	(%r15), %esi
	movl	(%r12), %ecx
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	_atmtcp_send_control
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_sk_atm
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_ATMPVC,4,2                  ## @AF_ATMPVC
	.comm	_ATM_VPI_UNSPEC,2,1             ## @ATM_VPI_UNSPEC
	.comm	_ATM_VCI_UNSPEC,4,2             ## @ATM_VCI_UNSPEC
	.comm	_ATMTCP_CTRL_OPEN,4,2           ## @ATMTCP_CTRL_OPEN
	.comm	_ATM_VF_ADDR,4,2                ## @ATM_VF_ADDR
	.comm	_ATM_VF_READY,4,2               ## @ATM_VF_READY
	.no_dead_strip	_atmtcp_v_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmtcp_v_open
_atmtcp_v_open:                         ; @atmtcp_v_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldrh	w21, [x0]
	ldr	w20, [x0, #4]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _AF_ATMPVC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_ATMPVC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	sxth	w0, w21
	bl	_htons
	str	x0, [sp, #40]
	strh	w21, [sp, #16]
	mov	x0, x20
	bl	_htons
	mov	x8, x0
	mov	w0, #0
	str	x8, [sp, #32]
	str	w20, [sp, #20]
Lloh3:
	adrp	x8, _ATM_VPI_UNSPEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATM_VPI_UNSPEC@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh5:
	adrp	x9, _ATM_VCI_UNSPEC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATM_VCI_UNSPEC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w20, w9, #4, ne
	b.eq	LBB0_3
; %bb.1:
Lloh8:
	adrp	x21, _ATMTCP_CTRL_OPEN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ATMTCP_CTRL_OPEN@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x19, #12]
	stp	w9, w8, [sp, #8]
Lloh10:
	adrp	x8, _ATM_VF_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATM_VF_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_set_bit
Lloh13:
	adrp	x22, _ATM_VF_READY@GOTPAGE
Lloh14:
	ldr	x22, [x22, _ATM_VF_READY@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
	ldr	w1, [x21]
	ldr	w3, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_atmtcp_send_control
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_sk_atm
	ldr	w8, [x0]
	neg	w0, w8
LBB0_3:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_ATMPVC,4,2                  ; @AF_ATMPVC
	.comm	_ATM_VPI_UNSPEC,2,1             ; @ATM_VPI_UNSPEC
	.comm	_ATM_VCI_UNSPEC,4,2             ; @ATM_VCI_UNSPEC
	.comm	_ATMTCP_CTRL_OPEN,4,2           ; @ATMTCP_CTRL_OPEN
	.comm	_ATM_VF_ADDR,4,2                ; @ATM_VF_ADDR
	.comm	_ATM_VF_READY,4,2               ; @ATM_VF_READY
	.no_dead_strip	_atmtcp_v_open
.subsections_via_symbols
