	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_get_backlog
_socket_get_backlog:                    ## @socket_get_backlog
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movl	$4, -36(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_LISTENQLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	callq	_getsockopt
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movl	-36(%rbp), %r8d
	cmpl	$4, %r8d
	jne	LBB0_4
## %bb.2:
	movl	-40(%rbp), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_warn
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_warnx
LBB0_5:
	movl	$-1, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_LISTENQLIMIT,4,2            ## @SO_LISTENQLIMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: %s: socket_get_backlog: getsockopt(SOL_SOCKET, SO_LISTENQLIMIT)"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s: %s: socket_get_backlog: getsockopt(SOL_SOCKET, SO_LISTENQLIMIT): returned size %d"

	.no_dead_strip	_socket_get_backlog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_get_backlog
_socket_get_backlog:                    ; @socket_get_backlog
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	w8, #4
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SO_LISTENQLIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SO_LISTENQLIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	add	x4, sp, #12
	bl	_getsockopt
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	w4, [sp, #12]
	cmp	w4, #4
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	ldr	w8, [sp, #8]
	str	w8, [x22]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_warn
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_warnx
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_LISTENQLIMIT,4,2            ; @SO_LISTENQLIMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: %s: socket_get_backlog: getsockopt(SOL_SOCKET, SO_LISTENQLIMIT)"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s: %s: socket_get_backlog: getsockopt(SOL_SOCKET, SO_LISTENQLIMIT): returned size %d"

	.no_dead_strip	_socket_get_backlog
.subsections_via_symbols
