	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udom_open
_udom_open:                             ## @udom_open
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-88(%rbp), %rdi
	movl	$32, %esi
	callq	_bzero
	movq	_AF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_realpath
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-88(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_3
LBB0_5:
	movq	-56(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	callq	_socket
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r13d
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_connect
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %edi
	callq	_close
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_11:
	movq	-56(%rbp), %rdi
	callq	_freeaddrinfo
	jmp	LBB0_3
LBB0_10:
	xorl	%edi, %edi
	callq	_freeaddrinfo
	jmp	LBB0_3
LBB0_12:
	movq	-56(%rbp), %rdi
	callq	_freeaddrinfo
	movq	_O_ACCMODE@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	cmpl	$128, %r14d
	je	LBB0_15
## %bb.13:
	cmpl	$129, %r14d
	jne	LBB0_18
## %bb.14:
	movq	_SHUT_WR@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_SHUT_RD@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_shutdown
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.17:
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_warn
LBB0_18:
	movl	%r13d, %r15d
LBB0_3:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.4:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_SHUT_WR,4,2                    ## @SHUT_WR
	.comm	_SHUT_RD,4,2                    ## @SHUT_RD
	.no_dead_strip	_udom_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udom_open
_udom_open:                             ; @udom_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #48
	mov	x20, x1
	mov	x21, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	sub	x0, x29, #72
	mov	w1, #32
	bl	_bzero
Lloh8:
	adrp	x8, _AF_LOCAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_LOCAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stur	w8, [x29, #-56]
	mov	x0, x21
	mov	x1, x19
	bl	_realpath
	cbz	x0, LBB0_10
; %bb.1:
	sub	x2, x29, #72
	sub	x3, x29, #80
	mov	x0, x19
	mov	x1, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_3
; %bb.2:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	add	sp, sp, #16
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _errno@GOTPAGE
Lloh17:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
	b	LBB0_10
LBB0_3:
	ldur	x21, [x29, #-80]
	cbz	x21, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x21, #12]
	ldr	w2, [x21, #8]
	bl	_socket
	tbnz	w0, #31, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, x0
	ldp	w2, w1, [x21]
	bl	_connect
	cbz	w0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_close
	ldr	x21, [x21, #24]
	cbnz	x21, LBB0_4
LBB0_7:
	ldur	x0, [x29, #-80]
	b	LBB0_9
LBB0_8:
	mov	x0, #0
LBB0_9:
	bl	_freeaddrinfo
LBB0_10:
	mov	w19, #-1
LBB0_11:
	mov	sp, x22
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.12:
	mov	x0, x19
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldur	x0, [x29, #-80]
	bl	_freeaddrinfo
Lloh22:
	adrp	x8, _O_ACCMODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _O_ACCMODE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	and	w8, w8, w20
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.14:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.15:
Lloh25:
	adrp	x8, _SHUT_WR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SHUT_WR@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh27:
	adrp	x8, _SHUT_RD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SHUT_RD@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_shutdown
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.18:
	mov	x0, #0
	bl	_warn
	b	LBB0_11
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_SHUT_WR,4,2                    ; @SHUT_WR
	.comm	_SHUT_RD,4,2                    ; @SHUT_RD
	.no_dead_strip	_udom_open
.subsections_via_symbols
