	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pick_outgoing_tcp
_pick_outgoing_tcp:                     ## @pick_outgoing_tcp
	.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
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movl	4(%rax), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	16(%rax), %r15
	movl	8(%rax), %edi
	callq	_ub_random_max
	movq	%rax, %rbx
	leaq	(%r15,%rax,8), %r12
	movq	%r12, %rdi
	callq	_log_assert
	leaq	(%r15,%rbx,8), %r13
	addq	$4, %r13
	movl	(%r15,%rbx,8), %esi
	movq	%r13, %rdi
	callq	_addr_is_any
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_addr_is_ip6
	movq	$0, (%r13)
	movl	(%r12), %edx
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_bind
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_5
LBB0_1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_log_err
	movq	_VERB_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %ecx
	addq	$12, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_log_addr
LBB0_5:
	movl	%r14d, %edi
	callq	_close
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	callq	_log_addr
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no TCP outgoing interfaces of family"

	.comm	_VERB_OPS,4,2                   ## @VERB_OPS
L_.str.1:                               ## @.str.1
	.asciz	"for addr"

L_.str.2:                               ## @.str.2
	.asciz	"outgoing tcp: bind: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.3:                               ## @.str.3
	.asciz	"tcp bound to src"

	.no_dead_strip	_pick_outgoing_tcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pick_outgoing_tcp
_pick_outgoing_tcp:                     ; @pick_outgoing_tcp
	.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, x1
	ldr	x8, [x0]
	ldr	w1, [x8, #4]
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x20, [x8, #16]
	ldr	w0, [x8, #8]
	bl	_ub_random_max
	add	x20, x20, x0, lsl #3
	mov	x0, x20
	bl	_log_assert
	mov	x21, x20
	ldr	w1, [x21], #4
	mov	x0, x21
	bl	_addr_is_any
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #1
	b	LBB0_7
LBB0_3:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
Lloh2:
	adrp	x8, _VERB_OPS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VERB_OPS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x2, x20, #12
	ldr	w3, [x20, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_addr
	b	LBB0_6
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_addr_is_ip6
	str	xzr, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_bind
	cbz	x0, LBB0_8
; %bb.5:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err
LBB0_6:
	mov	x0, x19
	bl	_close
	mov	w0, #0
LBB0_7:
	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
LBB0_8:
Lloh12:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w3, [x20]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_log_addr
	b	LBB0_2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no TCP outgoing interfaces of family"

	.comm	_VERB_OPS,4,2                   ; @VERB_OPS
l_.str.1:                               ; @.str.1
	.asciz	"for addr"

l_.str.2:                               ; @.str.2
	.asciz	"outgoing tcp: bind: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.3:                               ; @.str.3
	.asciz	"tcp bound to src"

	.no_dead_strip	_pick_outgoing_tcp
.subsections_via_symbols
