	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl_getlist
_nl_getlist:                            ## @nl_getlist
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movl	%edi, %r13d
	movl	%esi, -44(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, -48(%rbp)
	movq	_NLM_F_ROOT@GOTPCREL(%rip), %rax
	movq	_NLM_F_MATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r12d, %esi
	callq	_nl_sendreq
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_22
## %bb.1:
	movl	$3, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -44(%rbp)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)
	je	LBB0_9
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%rbx, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %rdi
	callq	_free
	movl	%ebx, %edi
	movq	%r14, %rbx
	callq	___set_errno
	movl	$-1, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$0, -48(%rbp)
	jne	LBB0_20
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, -80(%rbp)
	movq	_POLLPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -76(%rbp)
	movq	$0, -72(%rbp)
	leaq	-80(%rbp), %rdi
	movl	$1, %esi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_poll
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	-44(%rbp), %edx
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%r13d, %edi
	movl	%r12d, %esi
	leaq	-64(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_nl_getmsg
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpq	$0, -64(%rbp)
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	$0, 8(%rax)
	movq	-64(%rbp), %rcx
	movq	%rcx, 16(%rax)
	movl	%r14d, (%rax)
	movl	-44(%rbp), %ecx
	movl	%ecx, 4(%rax)
	cmpq	$0, (%rbx)
	je	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_9 Depth=2
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_7
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%rax, (%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=2
	movq	%rax, (%r15)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%edx
	movl	%edx, -44(%rbp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_NLM_F_MATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NLM_F_ROOT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%r13d, %edi
	movl	%r12d, %esi
	leaq	-44(%rbp), %rcx
	callq	_nl_sendreq
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_22
LBB0_10:
	movl	%eax, %r14d
	jmp	LBB0_22
LBB0_20:
	movl	-44(%rbp), %eax
LBB0_21:
	testl	%r14d, %r14d
	cmovsl	%r14d, %eax
	movl	%eax, %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	$-1, %r14d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_NLM_F_ROOT,4,2                 ## @NLM_F_ROOT
	.comm	_NLM_F_MATCH,4,2                ## @NLM_F_MATCH
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLPRI,4,2                    ## @POLLPRI
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_nl_getlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl_getlist
_nl_getlist:                            ; @nl_getlist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
	str	w1, [sp, #44]
	str	xzr, [sp, #32]
Lloh0:
	adrp	x8, _NLM_F_ROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NLM_F_ROOT@GOTPAGEOFF]
	str	wzr, [sp, #28]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _NLM_F_MATCH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _NLM_F_MATCH@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w9, w8
	add	x3, sp, #44
	mov	x1, x21
	bl	_nl_sendreq
	mov	x23, x0
	tbnz	w0, #31, LBB0_20
; %bb.1:
	mov	w26, #3
Lloh5:
	adrp	x27, _POLLIN@GOTPAGE
Lloh6:
	ldr	x27, [x27, _POLLIN@GOTPAGEOFF]
Lloh7:
	adrp	x28, _POLLPRI@GOTPAGE
Lloh8:
	ldr	x28, [x28, _POLLPRI@GOTPAGEOFF]
Lloh9:
	adrp	x24, _errno@GOTPAGE
Lloh10:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [sp, #44]
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, #0
	bl	_time
	str	w0, [sp, #44]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_7
	b	LBB0_19
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w23, [x24]
	ldr	x0, [sp, #32]
	bl	_free
	mov	x0, x23
	bl	___set_errno
	mov	w23, #-1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_18
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w8, w9, w8
	stp	w22, w8, [sp, #8]
	str	xzr, [sp, #16]
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1000
	bl	_poll
	mov	x23, x0
	tbnz	w0, #31, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w2, [sp, #44]
	cbz	w23, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x3, sp, #32
	add	x4, sp, #28
	mov	x0, x22
	mov	x1, x21
	bl	_nl_getmsg
	mov	x23, x0
	tbnz	w0, #31, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #32]
	stp	xzr, x8, [x0, #8]
	str	w23, [x0]
	ldr	w8, [sp, #44]
	str	w8, [x0, #4]
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19]
	str	x0, [x8, #8]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=2
	str	x0, [x20]
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=2
	str	x0, [x19]
	b	LBB0_6
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w2, #1
	str	w8, [sp, #44]
	cmp	w26, #0
	b.le	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	w26, w26, #1
Lloh11:
	adrp	x8, _NLM_F_ROOT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NLM_F_ROOT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w2, w9, w8
	add	x3, sp, #44
	mov	x0, x22
	mov	x1, x21
	bl	_nl_sendreq
	mov	x23, x0
	tbz	w0, #31, LBB0_2
	b	LBB0_20
LBB0_18:
	ldr	w0, [sp, #44]
LBB0_19:
	cmp	w23, #0
	csel	w23, w23, w0, lt
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_21:
	mov	w23, #-1
	b	LBB0_20
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NLM_F_ROOT,4,2                 ; @NLM_F_ROOT
	.comm	_NLM_F_MATCH,4,2                ; @NLM_F_MATCH
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLPRI,4,2                    ; @POLLPRI
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_nl_getlist
.subsections_via_symbols
