	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_reuseaddr
_set_reuseaddr:                         ## @set_reuseaddr
	.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	%edi, -44(%rbp)
	movq	_ep_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	_INT_WILDCARD@GOTPCREL(%rip), %r14
	leaq	L_.str.2(%rip), %r12
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_stoa
	cmpl	$0, -44(%rbp)
	movq	%r15, %rsi
	cmoveq	%r12, %rsi
	movl	$4, %edi
	callq	_DPRINTF
	movq	8(%rbx), %rdi
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_stoa
	cmpl	$0, -44(%rbp)
	movq	%r15, %rcx
	cmoveq	%r12, %rcx
	movl	%r14d, %edi
	movq	_INT_WILDCARD@GOTPCREL(%rip), %r14
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_msyslog
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ep_list,8,3                    ## @ep_list
	.comm	_INT_WILDCARD,4,2               ## @INT_WILDCARD
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"on"

L_.str.2:                               ## @.str.2
	.asciz	"off"

	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.3:                               ## @.str.3
	.asciz	"set_reuseaddr: setsockopt(%s, SO_REUSEADDR, %s) failed: %m"

	.no_dead_strip	_set_reuseaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_reuseaddr
_set_reuseaddr:                         ; @set_reuseaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _ep_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ep_list@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cbz	x22, LBB0_7
; %bb.1:
Lloh3:
	adrp	x23, _INT_WILDCARD@GOTPAGE
Lloh4:
	ldr	x23, [x23, _INT_WILDCARD@GOTPAGEOFF]
Lloh5:
	adrp	x24, l_.str.1@PAGE
Lloh6:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh7:
	adrp	x25, _INVALID_SOCKET@GOTPAGE
Lloh8:
	ldr	x25, [x25, _INVALID_SOCKET@GOTPAGEOFF]
Lloh9:
	adrp	x26, l_.str.2@PAGE
Lloh10:
	add	x26, x26, l_.str.2@PAGEOFF
Lloh11:
	adrp	x27, _SOL_SOCKET@GOTPAGE
Lloh12:
	ldr	x27, [x27, _SOL_SOCKET@GOTPAGEOFF]
Lloh13:
	adrp	x28, _SO_REUSEADDR@GOTPAGE
Lloh14:
	ldr	x28, [x28, _SO_REUSEADDR@GOTPAGEOFF]
Lloh15:
	adrp	x19, l_.str.3@PAGE
Lloh16:
	add	x19, x19, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x22, #16
	mov	x0, x20
	bl	_stoa
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csel	x1, x26, x24, eq
	mov	w0, #4
	bl	_DPRINTF
	ldr	x0, [x22, #8]
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	ldr	w2, [x28]
	add	x3, sp, #12
	mov	w4, #4
	bl	_setsockopt
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_stoa
	mov	x2, x0
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csel	x3, x26, x24, eq
	mov	x0, x21
	mov	x1, x19
	bl	_msyslog
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ep_list,8,3                    ; @ep_list
	.comm	_INT_WILDCARD,4,2               ; @INT_WILDCARD
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"on"

l_.str.2:                               ; @.str.2
	.asciz	"off"

	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.3:                               ; @.str.3
	.asciz	"set_reuseaddr: setsockopt(%s, SO_REUSEADDR, %s) failed: %m"

	.no_dead_strip	_set_reuseaddr
.subsections_via_symbols
