	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_socket_connect_setopts ## -- Begin function network_socket_connect_setopts
	.p2align	4, 0x90
_network_socket_connect_setopts:        ## @network_socket_connect_setopts
	.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
	movl	$1, -28(%rbp)
	movl	8(%rdi), %edi
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCP_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %r14
	movq	%r14, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	$1, -28(%rbp)
	movl	8(%rbx), %edi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	8(%rbx), %edi
	movq	(%rbx), %rdx
	leaq	4(%rdx), %rsi
	callq	_getsockname
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	callq	_network_address_refresh_name
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_g_debug
	jmp	LBB0_4
LBB0_1:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_g_strerror
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_g_debug
LBB0_4:
	movq	(%rbx), %rdi
	callq	_network_address_reset
LBB0_5:
	movq	_NETWORK_SOCKET_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: getsockname() failed: %s (%d)"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"%s: network_address_refresh_name() failed"

	.comm	_NETWORK_SOCKET_SUCCESS,4,2     ## @NETWORK_SOCKET_SUCCESS
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_TOS,4,2                     ## @IP_TOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_socket_connect_setopts ; -- Begin function network_socket_connect_setopts
	.p2align	2
_network_socket_connect_setopts:        ; @network_socket_connect_setopts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	w20, #1
	str	w20, [sp, #28]
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TCP_NODELAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCP_NODELAY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	w4, #4
	bl	_setsockopt
	str	w20, [sp, #28]
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SO_KEEPALIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SO_KEEPALIVE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	w4, #4
	bl	_setsockopt
	ldr	w0, [x19, #8]
	ldr	x2, [x19]
	add	x1, x2, #4
	bl	_getsockname
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	x0, [x19]
	bl	_network_address_refresh_name
	cbz	x0, LBB0_5
; %bb.2:
Lloh12:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
Lloh20:
	adrp	x21, _errno@GOTPAGE
Lloh21:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_g_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21]
	stp	x0, x8, [sp]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
LBB0_4:
	bl	_g_debug
	ldr	x0, [x19]
	bl	_network_address_reset
LBB0_5:
Lloh24:
	adrp	x8, _NETWORK_SOCKET_SUCCESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NETWORK_SOCKET_SUCCESS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: getsockname() failed: %s (%d)"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"%s: network_address_refresh_name() failed"

	.comm	_NETWORK_SOCKET_SUCCESS,4,2     ; @NETWORK_SOCKET_SUCCESS
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_TOS,4,2                     ; @IP_TOS
.subsections_via_symbols
