	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_connection
_open_connection:                       ## @open_connection
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_LOG_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	28(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	20(%rbx), %edi
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_socket
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	leaq	24(%rbx), %rsi
	movl	8(%rbx), %edx
	movl	%eax, %edi
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_5
## %bb.3:
	movl	(%r15), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_4
LBB0_1:
	movl	(%r15), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
LBB0_4:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying remote delivery to %s [%s] pref %d"

L_.str.1:                               ## @.str.1
	.asciz	"socket for %s [%s] failed: %m"

L_.str.2:                               ## @.str.2
	.asciz	"connect to %s [%s] failed: %m"

	.no_dead_strip	_open_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_connection
_open_connection:                       ; @open_connection
	.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	x19, x0
Lloh0:
	adrp	x21, _LOG_INFO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LOG_INFO@GOTPAGEOFF]
	ldr	w0, [x21]
	ldp	w3, w2, [x19]
	ldr	w8, [x19, #28]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
	ldp	w1, w0, [x19, #16]
	ldr	w2, [x19, #12]
	bl	_socket
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x1, x19, #24
	ldr	w2, [x19, #8]
	bl	_connect
	tbz	x0, #63, LBB0_5
; %bb.2:
	ldr	w0, [x21]
	ldp	w3, w2, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_syslog
	mov	x0, x20
	bl	_close
	b	LBB0_4
LBB0_3:
	ldr	w0, [x21]
	ldp	w3, w2, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
LBB0_4:
	mov	w20, #-1
LBB0_5:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying remote delivery to %s [%s] pref %d"

l_.str.1:                               ; @.str.1
	.asciz	"socket for %s [%s] failed: %m"

l_.str.2:                               ; @.str.2
	.asciz	"connect to %s [%s] failed: %m"

	.no_dead_strip	_open_connection
.subsections_via_symbols
