	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvc_bind
_pvc_bind:                              ## @pvc_bind
	.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
	cmpl	$32, %edx
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_AF_ATMPVC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_lock_sock
	movq	%r15, %rdi
	callq	_ATM_SD
	movq	%rax, %r12
	movq	_ATM_VF_HASQOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r12), %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_ATM_VF_PARTIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	(%r12), %rax
	movq	_ATM_VPI_UNSPEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, 8(%rbx)
LBB0_10:
	movq	8(%r12), %rax
	movq	_ATM_VCI_UNSPEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, 16(%rbx)
LBB0_12:
	movl	24(%rbx), %esi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	movq	%r15, %rdi
	callq	_vcc_connect
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	movq	_EBADFD@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r14, %rdi
	callq	_release_sock
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_ATMPVC,8,3                  ## @AF_ATMPVC
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_ATM_VF_HASQOS,4,2              ## @ATM_VF_HASQOS
	.comm	_EBADFD,4,2                     ## @EBADFD
	.comm	_ATM_VF_PARTIAL,4,2             ## @ATM_VF_PARTIAL
	.comm	_ATM_VPI_UNSPEC,8,3             ## @ATM_VPI_UNSPEC
	.comm	_ATM_VCI_UNSPEC,8,3             ## @ATM_VCI_UNSPEC
	.no_dead_strip	_pvc_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvc_bind
_pvc_bind:                              ; @pvc_bind
	.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
	cmp	w2, #32
	b.ne	LBB0_9
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _AF_ATMPVC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_ATMPVC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_lock_sock
	mov	x0, x20
	bl	_ATM_SD
	mov	x22, x0
Lloh3:
	adrp	x8, _ATM_VF_HASQOS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATM_VF_HASQOS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x23, x22, #16
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.3:
Lloh6:
	adrp	x8, _ATM_VF_PARTIAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATM_VF_PARTIAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _ATM_VPI_UNSPEC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATM_VPI_UNSPEC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	str	x8, [x21, #8]
LBB0_6:
	ldr	x8, [x22, #8]
Lloh12:
	adrp	x9, _ATM_VCI_UNSPEC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATM_VCI_UNSPEC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	str	x8, [x21, #16]
LBB0_8:
	ldr	w1, [x21, #24]
	ldp	x2, x3, [x21, #8]
	mov	x0, x20
	bl	_vcc_connect
	mov	x20, x0
	b	LBB0_13
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_12:
Lloh19:
	adrp	x8, _EBADFD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x19
	bl	_release_sock
LBB0_14:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_ATMPVC,8,3                  ; @AF_ATMPVC
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_ATM_VF_HASQOS,4,2              ; @ATM_VF_HASQOS
	.comm	_EBADFD,4,2                     ; @EBADFD
	.comm	_ATM_VF_PARTIAL,4,2             ; @ATM_VF_PARTIAL
	.comm	_ATM_VPI_UNSPEC,8,3             ; @ATM_VPI_UNSPEC
	.comm	_ATM_VCI_UNSPEC,8,3             ; @ATM_VCI_UNSPEC
	.no_dead_strip	_pvc_bind
.subsections_via_symbols
