	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svr_bind
_svr_bind:                              ## @svr_bind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_src_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	jmp	LBB0_7
LBB0_2:
	movq	-24(%rbp), %rax
	movl	16(%rax), %edi
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	callq	_rs_socket
	movq	_rs@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %edi
	callq	_set_options
	movl	(%rbx), %edi
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_rs_bind
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_6:
	movq	-24(%rbp), %rdi
	callq	_free
LBB0_7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movl	(%rbx), %ebx
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %r14d
	callq	_svr_bind.cold.1
	movl	%r14d, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function svr_bind.cold.1
_svr_bind.cold.1:                       ## @svr_bind.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	movq	_rs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rs_close
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_src_addr,4,2                   ## @src_addr
	.comm	_port,4,2                       ## @port
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getaddrinfo: %s\n"

	.comm	_rs,4,2                         ## @rs
L_.str.1:                               ## @.str.1
	.asciz	"rsocket"

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

	.no_dead_strip	_svr_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svr_bind
_svr_bind:                              ; @svr_bind
	.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
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
Lloh0:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]
Lloh3:
	adrp	x8, _src_addr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _src_addr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _port@GOTPAGE
Lloh7:
	ldr	x8, [x8, _port@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x3, sp
	bl	_getaddrinfo
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_gai_strerror
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_5
LBB0_2:
	ldr	x8, [sp]
	ldp	w1, w0, [x8, #12]
	ldr	w2, [x8, #8]
	bl	_rs_socket
Lloh11:
	adrp	x19, _rs@GOTPAGE
Lloh12:
	ldr	x19, [x19, _rs@GOTPAGEOFF]
	str	w0, [x19]
	tbnz	w0, #31, LBB0_6
; %bb.3:
	bl	_set_options
	ldr	w0, [x19]
	ldr	x8, [sp]
	ldp	w2, w1, [x8]
	bl	_rs_bind
	mov	x19, x0
	cbnz	w0, LBB0_7
LBB0_4:
	ldr	x0, [sp]
	bl	_free
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	ldr	w19, [x19]
	b	LBB0_4
LBB0_7:
	bl	_svr_bind.cold.1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function svr_bind.cold.1
_svr_bind.cold.1:                       ; @svr_bind.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
Lloh17:
	adrp	x8, _rs@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rs@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_rs_close
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_src_addr,4,2                   ; @src_addr
	.comm	_port,4,2                       ; @port
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getaddrinfo: %s\n"

	.comm	_rs,4,2                         ; @rs
l_.str.1:                               ; @.str.1
	.asciz	"rsocket"

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

	.no_dead_strip	_svr_bind
.subsections_via_symbols
