	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cr
_cr:                                    ## @cr
	.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
	movq	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PF_INET6@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	movq	%r12, %rdi
	callq	_htons
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	%rbx, -40(%rbp)
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, -48(%rbp)
LBB0_8:
	leaq	-48(%rbp), %rsi
	movl	%r13d, %edi
	movl	$16, %edx
	callq	_bind
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_13
## %bb.11:
	movl	%r13d, %edi
	movl	$5, %esi
	callq	_listen
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

	.comm	_AF_INET6,4,2                   ## @AF_INET6
L_.str.1:                               ## @.str.1
	.asciz	"bind"

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.2:                               ## @.str.2
	.asciz	"listen"

	.no_dead_strip	_cr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cr
_cr:                                    ; @cr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _AF_INET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AF_INET@GOTPAGEOFF]
Lloh2:
	adrp	x8, _PF_INET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh4:
	adrp	x10, _PF_INET6@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PF_INET6@GOTPAGEOFF]
	cmp	w9, w0
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	x0, x22
	bl	_htons
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x23]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.3:
	str	x22, [sp, #16]
	b	LBB0_5
LBB0_4:
	str	x22, [sp, #8]
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #16
	bl	_bind
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
Lloh10:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x19
	mov	w1, #5
	bl	_listen
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

	.comm	_AF_INET6,4,2                   ; @AF_INET6
l_.str.1:                               ; @.str.1
	.asciz	"bind"

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.2:                               ; @.str.2
	.asciz	"listen"

	.no_dead_strip	_cr
.subsections_via_symbols
