	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_os_sock_make               ## -- Begin function apr_os_sock_make
	.p2align	4, 0x90
_apr_os_sock_make:                      ## @apr_os_sock_make
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdx, %rsi
	callq	_alloc_socket
	movq	(%r14), %rdi
	movl	32(%rbx), %esi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %edx
	callq	_set_socket_vars
	movq	(%r14), %rax
	movl	$-1, (%rax)
	movq	16(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rax)
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	40(%rax), %rdi
	movl	16(%rdi), %edx
	callq	_memcpy
	movq	(%r14), %rax
	movq	40(%rax), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	(%r14), %rcx
	movq	40(%rcx), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_3
LBB0_2:
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 4(%rax)
LBB0_3:
	movq	(%rbx), %rax
	movq	(%r14), %rsi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, 12(%rsi)
	movq	32(%rsi), %rdi
	movl	16(%rdi), %edx
	movq	%rax, %rsi
	callq	_memcpy
	movq	(%r14), %rax
	movq	32(%rax), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	(%r14), %rcx
	movq	32(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r14), %rsi
	jmp	LBB0_6
LBB0_5:
	movl	$1, 16(%rsi)
LBB0_6:
	movq	$0, 24(%rsi)
	movl	20(%rsi), %edi
	movq	_socket_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_apr_pool_cleanup_register
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_socket_cleanup,4,2             ## @socket_cleanup
	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_os_sock_make               ; -- Begin function apr_os_sock_make
	.p2align	2
_apr_os_sock_make:                      ; @apr_os_sock_make
	.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	x20, x1
	mov	x19, x0
	mov	x1, x2
	bl	_alloc_socket
	ldr	x0, [x19]
	ldp	w2, w1, [x20, #28]
	ldr	w3, [x20, #24]
	bl	_set_socket_vars
	ldr	x8, [x19]
	mov	w9, #-1
	str	w9, [x8]
	ldp	x1, x9, [x20, #8]
	ldr	w9, [x9]
	str	w9, [x8, #48]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x0, [x8, #40]
	ldr	w2, [x0, #16]
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8, #40]
	ldr	w0, [x8]
	bl	_ntohs
	ldr	x8, [x19]
	ldr	x8, [x8, #40]
	str	x0, [x8, #8]
	b	LBB0_3
LBB0_2:
	movi.2s	v0, #1
	stur	d0, [x8, #4]
LBB0_3:
	ldr	x8, [x20]
	ldr	x1, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w9, #1
	str	w9, [x1, #12]
	ldr	x0, [x1, #32]
	ldr	w2, [x0, #16]
	mov	x1, x8
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8, #32]
	ldr	w0, [x8]
	bl	_ntohs
	ldr	x8, [x19]
	ldr	x8, [x8, #32]
	str	x0, [x8, #8]
	ldr	x1, [x19]
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x1, #16]
LBB0_6:
	str	xzr, [x1, #24]
	ldr	w0, [x1, #20]
Lloh0:
	adrp	x8, _socket_cleanup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _socket_cleanup@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_apr_pool_cleanup_register
Lloh3:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_socket_cleanup,4,2             ; @socket_cleanup
	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
.subsections_via_symbols
