	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_set_qlimit
_test_set_qlimit:                       ## @test_set_qlimit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	movl	$0, -12(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_LISTENQLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	jne	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_warnx
	movl	%ebx, %edi
	callq	_close
	movl	$-1, %edi
	callq	_exit
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movl	%ebx, %edi
	callq	_close
LBB0_6:
	movl	%ebx, %edi
	callq	_close
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_set_qlimit: socket(PF_INET, SOCK_STREAM)"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_LISTENQLIMIT,4,2            ## @SO_LISTENQLIMIT
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOPROTOOPT,8,3                ## @ENOPROTOOPT
L_.str.1:                               ## @.str.1
	.asciz	"test_set_qlimit: setsockopt(SOL_SOCKET, SO_LISTENQLIMIT, 0): unexpected error"

L_.str.2:                               ## @.str.2
	.asciz	"test_set_qlimit: setsockopt(SOL_SOCKET, SO_LISTENQLIMIT, 0) succeeded"

	.no_dead_strip	_test_set_qlimit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_set_qlimit
_test_set_qlimit:                       ; @test_set_qlimit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
	str	wzr, [sp, #12]
Lloh8:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SO_LISTENQLIMIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SO_LISTENQLIMIT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	tbnz	w0, #31, LBB0_5
; %bb.3:
	cbnz	w0, LBB0_7
; %bb.4:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	mov	x0, x19
	bl	_close
	mov	w0, #-1
	bl	_exit
LBB0_5:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _ENOPROTOOPT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ENOPROTOOPT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	mov	x0, x19
	bl	_close
LBB0_7:
	mov	x0, x19
	bl	_close
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_set_qlimit: socket(PF_INET, SOCK_STREAM)"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_LISTENQLIMIT,4,2            ; @SO_LISTENQLIMIT
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOPROTOOPT,8,3                ; @ENOPROTOOPT
l_.str.1:                               ; @.str.1
	.asciz	"test_set_qlimit: setsockopt(SOL_SOCKET, SO_LISTENQLIMIT, 0): unexpected error"

l_.str.2:                               ; @.str.2
	.asciz	"test_set_qlimit: setsockopt(SOL_SOCKET, SO_LISTENQLIMIT, 0) succeeded"

	.no_dead_strip	_test_set_qlimit
.subsections_via_symbols
