	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_listen
_socket_listen:                         ## @socket_listen
	.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	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movq	48(%rbp), %r12
	movq	40(%rbp), %r15
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	leaq	L_.str.1(%rip), %r8
	leaq	-44(%rbp), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_socket_get_backlog
	testq	%rax, %rax
	js	LBB0_12
## %bb.2:
	movl	-44(%rbp), %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_8
## %bb.3:
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_listen
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	leaq	L_.str.1(%rip), %r8
	leaq	-44(%rbp), %rsi
	movl	%ebx, %edi
	movq	40(%rbp), %r15
	movq	%r15, %rdx
	movq	48(%rbp), %r14
	movq	%r14, %rcx
	callq	_socket_get_backlog
	testq	%rax, %rax
	js	LBB0_12
## %bb.5:
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	cmpl	%r8d, %ecx
	jne	LBB0_10
## %bb.6:
	movq	16(%rbp), %rax
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_7:
	movq	32(%rbp), %r8
	movq	24(%rbp), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	movq	40(%rbp), %rsi
	movq	48(%rbp), %rdx
	movl	%r14d, %r8d
LBB0_11:
	callq	_warnx
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	movq	40(%rbp), %rsi
	movq	48(%rbp), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_warn
LBB0_12:
	movl	%ebx, %edi
	callq	_close
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: socket_listen: socket(%s, %s)"

L_.str.1:                               ## @.str.1
	.asciz	"socket_listen"

L_.str.2:                               ## @.str.2
	.asciz	"%s: %s: socket_listen: create backlog is %d not %d"

L_.str.3:                               ## @.str.3
	.asciz	"%s: %s: socket_listen: listen(, %d)"

L_.str.4:                               ## @.str.4
	.asciz	"%s: %s: socket_listen: listen backlog is %d not %d"

	.no_dead_strip	_socket_listen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_listen
_socket_listen:                         ; @socket_listen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x26, x7
	mov	x23, x6
	mov	x22, x5
	mov	x25, x4
	mov	x24, x3
	ldp	x21, x20, [x29, #24]
	bl	_socket
	mov	x19, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh0:
	adrp	x4, l_.str.1@PAGE
Lloh1:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x1, sp, #28
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_socket_get_backlog
	tbnz	x0, #63, LBB0_11
; %bb.2:
	ldr	w3, [sp, #28]
	cmp	w3, w25
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x19
	mov	x1, x24
	bl	_listen
	tbnz	x0, #63, LBB0_13
; %bb.4:
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x1, sp, #28
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_socket_get_backlog
	tbnz	x0, #63, LBB0_11
; %bb.5:
	ldr	w3, [sp, #28]
	cmp	w3, w22
	b.ne	LBB0_14
; %bb.6:
	mov	w0, #0
	str	w19, [x23]
	b	LBB0_12
LBB0_7:
	ldr	x8, [x29, #16]
	stp	x26, x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	mov	x1, x21
	mov	x2, x20
	bl	_warn
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x4, x25
LBB0_10:
	bl	_warnx
LBB0_11:
	mov	x0, x19
	bl	_close
	mov	w0, #-1
LBB0_12:
	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
	add	sp, sp, #112
	ret
LBB0_13:
	str	x24, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_14:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x4, x22
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: socket_listen: socket(%s, %s)"

l_.str.1:                               ; @.str.1
	.asciz	"socket_listen"

l_.str.2:                               ; @.str.2
	.asciz	"%s: %s: socket_listen: create backlog is %d not %d"

l_.str.3:                               ; @.str.3
	.asciz	"%s: %s: socket_listen: listen(, %d)"

l_.str.4:                               ; @.str.4
	.asciz	"%s: %s: socket_listen: listen backlog is %d not %d"

	.no_dead_strip	_socket_listen
.subsections_via_symbols
