	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_util_local_addr                ## -- Begin function util_local_addr
	.p2align	4, 0x90
_util_local_addr:                       ## @util_local_addr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$12, -28(%rbp)
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_AF_INET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	(%r15), %eax
	movl	%eax, -32(%rbp)
	movl	$8, %edi
	movl	$8, %esi
	movl	$8, %edx
	movl	$8, %ecx
	callq	_INET_ADDR
	movl	%eax, -40(%rbp)
	movl	$53, %edi
	callq	_htons
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_connect
	leaq	-28(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_getsockname
	movl	%r14d, %edi
	callq	_close
	movl	-40(%rbp), %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_util_local_addr                ; -- Begin function util_local_addr
	.p2align	2
_util_local_addr:                       ; @util_local_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	w8, #12
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	str	wzr, [x8]
Lloh3:
	adrp	x20, _AF_INET@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	str	w8, [sp, #24]
	mov	w0, #8
	mov	w1, #8
	mov	w2, #8
	mov	w3, #8
	bl	_INET_ADDR
	str	w0, [sp, #16]
	mov	w0, #53
	bl	_htons
	str	w0, [sp, #20]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #12
	bl	_connect
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x19
	bl	_getsockname
	mov	x0, x19
	bl	_close
	ldr	w0, [sp, #16]
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
.subsections_via_symbols
