	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_get_port
_cma_get_port:                          ## @cma_get_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_cma_family
	movq	_AF_IB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_cma_select_ib_ps
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_cma_select_inet_ps
LBB0_3:
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_cma_src_addr
	movl	%eax, %edi
	callq	_cma_any_port
	movl	%r14d, %edi
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_cma_alloc_any_port
	jmp	LBB0_8
LBB0_4:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	callq	_cma_use_port
LBB0_8:
	movl	%eax, %ebx
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_IB,8,3                      ## @AF_IB
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_lock,4,2                       ## @lock
	.no_dead_strip	_cma_get_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_get_port
_cma_get_port:                          ; @cma_get_port
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_cma_family
Lloh0:
	adrp	x8, _AF_IB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_IB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_cma_select_ib_ps
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x0, _lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x19
	bl	_cma_src_addr
	bl	_cma_any_port
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_cma_alloc_any_port
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_cma_select_inet_ps
	mov	x20, x0
	cbnz	w0, LBB0_2
LBB0_5:
Lloh5:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_cma_use_port
LBB0_7:
	mov	x19, x0
Lloh8:
	adrp	x0, _lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_IB,8,3                      ; @AF_IB
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_lock,4,2                       ; @lock
	.no_dead_strip	_cma_get_port
.subsections_via_symbols
