	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_socket_create              ## -- Begin function apr_socket_create
	.p2align	4, 0x90
_apr_socket_create:                     ## @apr_socket_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_APR_UNSPEC@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_APR_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	%r14, %rdi
	movq	%r8, %rsi
	callq	_alloc_socket
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_socket
	movq	(%r14), %rdi
	movl	%eax, (%rdi)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_set_socket_vars
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_F_GETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rcx
	movl	(%rcx), %edi
	movq	_F_SETFD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.7:
	movq	(%r14), %rsi
	movl	$-1, 4(%rsi)
	movq	$0, 16(%rsi)
	movl	8(%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
	jmp	LBB0_8
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_close
	movq	(%r14), %rax
	movl	$-1, (%rax)
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_UNSPEC,4,2                 ## @APR_UNSPEC
	.comm	_APR_INET,4,2                   ## @APR_INET
	.comm	_errno,4,2                      ## @errno
	.comm	_F_GETFD,4,2                    ## @F_GETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_socket_cleanup,4,2             ## @socket_cleanup
	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
	.comm	_APR_INET6,4,2                  ## @APR_INET6
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_SOCK_CLOEXEC,4,2               ## @SOCK_CLOEXEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_socket_create              ; -- Begin function apr_socket_create
	.p2align	2
_apr_socket_create:                     ; @apr_socket_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _APR_UNSPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _APR_INET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _APR_INET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	csel	w22, w9, w1, eq
	mov	x1, x4
	bl	_alloc_socket
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_socket
	mov	x8, x0
	ldr	x0, [x19]
	str	w8, [x0]
	tbnz	w8, #31, LBB0_4
; %bb.1:
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_set_socket_vars
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _F_GETFD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F_GETFD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _FD_CLOEXEC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FD_CLOEXEC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	x9, [x19]
	ldr	w0, [x9]
Lloh12:
	adrp	x9, _F_SETFD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _F_SETFD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	str	x8, [sp]
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	ldr	x1, [x19]
	mov	w8, #-1
	str	w8, [x1, #4]
	str	xzr, [x1, #16]
	ldr	w0, [x1, #8]
Lloh15:
	adrp	x8, _socket_cleanup@GOTPAGE
Lloh16:
	ldr	x8, [x8, _socket_cleanup@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_apr_pool_cleanup_register
Lloh18:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_5:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_close
	ldr	x8, [x19]
	mov	w9, #-1
	str	w9, [x8]
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_UNSPEC,4,2                 ; @APR_UNSPEC
	.comm	_APR_INET,4,2                   ; @APR_INET
	.comm	_errno,4,2                      ; @errno
	.comm	_F_GETFD,4,2                    ; @F_GETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_socket_cleanup,4,2             ; @socket_cleanup
	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
	.comm	_APR_INET6,4,2                  ; @APR_INET6
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_SOCK_CLOEXEC,4,2               ; @SOCK_CLOEXEC
.subsections_via_symbols
