	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_socket_connect             ## -- Begin function apr_socket_connect
	.p2align	4, 0x90
_apr_socket_connect:                    ## @apr_socket_connect
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	12(%rsi), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	48(%r14), %edi
	movl	8(%r15), %edx
	movq	%r12, %rsi
	callq	_connect
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$-1, %ebx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r13), %rax
	je	LBB0_1
LBB0_3:
	cmpl	$-1, %ebx
	jne	LBB0_8
## %bb.4:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_EALREADY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_6:
	cmpq	$0, (%r14)
	jle	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_apr_wait_for_io_or_timeout
	movl	%eax, %ebx
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_17
LBB0_8:
	movl	16(%r15), %edx
	movl	20(%r15), %edi
	movq	_generic_inaddr_any@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	$0, 40(%r14)
	movq	32(%r14), %rdi
	movl	12(%r15), %eax
	movl	%eax, 4(%rdi)
	movl	8(%r15), %eax
	movl	%eax, (%rdi)
	movl	(%r15), %edx
	movl	4(%r15), %esi
	callq	_apr_sockaddr_vars_set
LBB0_10:
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.11:
	movl	$1, 8(%r14)
LBB0_12:
	movl	8(%rax), %edx
	movl	12(%rax), %edi
	movl	(%r12), %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	cmpl	$-1, %ebx
	jne	LBB0_16
	jmp	LBB0_15
LBB0_13:
	movl	$1, 12(%r14)
	cmpl	$-1, %ebx
	jne	LBB0_16
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_EISCONN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_17
LBB0_16:
	movl	$1, 16(%r14)
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_EALREADY,8,3                   ## @EALREADY
	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
	.comm	_generic_inaddr_any,4,2         ## @generic_inaddr_any
	.comm	_EISCONN,8,3                    ## @EISCONN
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apr_socket_connect             ; -- Begin function apr_socket_connect
	.p2align	2
_apr_socket_connect:                    ; @apr_socket_connect
	.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
	mov	x21, x1
	mov	x19, x0
	add	x22, x1, #12
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x24, _EINTR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #48]
	ldr	w2, [x21, #8]
	mov	x1, x22
	bl	_connect
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_1
; %bb.2:
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.3:
Lloh4:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _EALREADY@GOTPAGE
Lloh8:
	ldr	x10, [x10, _EALREADY@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
	mov	x0, #0
	mov	x1, x19
	mov	w2, #0
	bl	_apr_wait_for_io_or_timeout
	mov	x20, x0
Lloh10:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
	b	LBB0_16
LBB0_6:
	mov	w20, #-1
LBB0_7:
Lloh13:
	adrp	x22, _generic_inaddr_any@GOTPAGE
Lloh14:
	ldr	x22, [x22, _generic_inaddr_any@GOTPAGEOFF]
	ldr	w1, [x22]
	ldp	w2, w0, [x21, #16]
	bl	_memcmp
	cbz	x0, LBB0_9
; %bb.8:
	str	xzr, [x19, #40]
	ldr	x0, [x19, #32]
	ldr	w8, [x21, #12]
	str	w8, [x0, #4]
	ldr	w8, [x21, #8]
	str	w8, [x0]
	ldp	w2, w1, [x21]
	bl	_apr_sockaddr_vars_set
LBB0_9:
	ldr	x8, [x19, #24]
	ldr	x9, [x8]
	cbnz	x9, LBB0_11
; %bb.10:
	mov	w9, #1
	str	w9, [x19, #8]
LBB0_11:
	ldr	w1, [x22]
	ldp	w2, w0, [x8, #8]
	bl	_memcmp
	cbz	x0, LBB0_13
; %bb.12:
	cmn	w20, #1
	b.ne	LBB0_15
	b	LBB0_14
LBB0_13:
	mov	w8, #1
	str	w8, [x19, #12]
	cmn	w20, #1
	b.ne	LBB0_15
LBB0_14:
	ldr	x20, [x23]
Lloh15:
	adrp	x8, _EISCONN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_16
LBB0_15:
	mov	w8, #1
	str	w8, [x19, #16]
Lloh18:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
LBB0_16:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_EALREADY,8,3                   ; @EALREADY
	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
	.comm	_generic_inaddr_any,4,2         ; @generic_inaddr_any
	.comm	_EISCONN,8,3                    ; @EISCONN
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
.subsections_via_symbols
