	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl_getmsg
_nl_getmsg:                             ## @nl_getmsg
	.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, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_getpid
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$65536, %r14d                   ## imm = 0x10000
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	movl	%r12d, %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%rax, %rcx
	movq	%r14, %r8
	leaq	-60(%rbp), %r9
	callq	_nl_recvmsg
	testl	%eax, %eax
	js	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -60(%rbp)
	je	LBB0_5
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%r14), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_realloc
	movl	$-1, %ebx
	cmpq	%r14, %r13
	jb	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r14
	testq	%rax, %rax
	jne	LBB0_3
LBB0_21:
	testl	%ebx, %ebx
	jns	LBB0_24
## %bb.22:
	testq	%r15, %r15
	je	LBB0_24
## %bb.23:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_free
	movl	%r14d, %edi
	callq	___set_errno
	jmp	LBB0_24
LBB0_1:
	movl	$-1, %ebx
LBB0_24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_NLMSG_OK
	testq	%rax, %rax
	je	LBB0_24
## %bb.8:
	movq	_NLMSG_DONE@GOTPCREL(%rip), %r12
	movq	_NLMSG_ERROR@GOTPCREL(%rip), %r13
	movq	%r15, %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_NLMSG_NEXT
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_NLMSG_OK
	testq	%rax, %rax
	je	LBB0_21
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%r14)
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r14)
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r14), %rax
	cmpq	(%r12), %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	(%r13), %rax
	jne	LBB0_18
## %bb.14:
	movq	%r14, %rdi
	callq	_NLMSG_DATA
	movq	%rax, %r12
	movq	24(%r14), %rbx
	movl	$4, %edi
	callq	_NLMSG_LENGTH
	cmpq	%rax, %rbx
	jge	LBB0_16
## %bb.15:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_17
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	jmp	LBB0_21
LBB0_16:
	xorl	%edi, %edi
	subl	(%r12), %edi
LBB0_17:
	callq	___set_errno
	movl	$-1, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_NLMSG_DONE,8,3                 ## @NLMSG_DONE
	.comm	_NLMSG_ERROR,8,3                ## @NLMSG_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_nl_getmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl_getmsg
_nl_getmsg:                             ; @nl_getmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x19, x3
	mov	x23, x2
	mov	x25, x1
	mov	x26, x0
	bl	_getpid
	mov	x24, x0
	mov	w0, #65536
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.1:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	w27, #65536
Lloh0:
	adrp	x22, _MSG_TRUNC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_TRUNC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x0
	add	x5, sp, #12
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	x3, x20
	mov	x4, x27
	bl	_nl_recvmsg
	tbnz	w0, #31, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	x28, x27, #1
	mov	x0, x20
	mov	x1, x28
	bl	_realloc
	mov	w21, #-1
	cmp	x28, x27
	b.lo	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x28
	cbnz	x0, LBB0_2
LBB0_6:
	tbz	w21, #31, LBB0_10
; %bb.7:
	cbz	x20, LBB0_10
; %bb.8:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_free
	mov	x0, x22
	bl	___set_errno
	b	LBB0_10
LBB0_9:
	mov	x20, #0
	mov	w21, #-1
LBB0_10:
	str	x20, [x19]
	mov	x0, x21
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.12:
	mov	x0, x20
	mov	x1, x21
	bl	_NLMSG_OK
	cbz	x0, LBB0_10
; %bb.13:
Lloh5:
	adrp	x22, _NLMSG_DONE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NLMSG_DONE@GOTPAGEOFF]
Lloh7:
	adrp	x26, _NLMSG_ERROR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _NLMSG_ERROR@GOTPAGEOFF]
	mov	x25, x20
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x25
	mov	x1, x21
	bl	_NLMSG_NEXT
	mov	x25, x0
	mov	x1, x21
	bl	_NLMSG_OK
	cbz	x0, LBB0_6
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cmp	x8, x24
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x25, #8]
	cmp	w8, w23
	b.ne	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x25, #16]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.19:
	mov	x0, x25
	bl	_NLMSG_DATA
	mov	x21, x0
	ldr	x22, [x25, #24]
	mov	w0, #4
	bl	_NLMSG_LENGTH
	cmp	x22, x0
	b.ge	LBB0_22
; %bb.20:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_21:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	b	LBB0_6
LBB0_22:
	ldr	w8, [x21]
	neg	w0, w8
LBB0_23:
	bl	___set_errno
	mov	w21, #-1
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_NLMSG_DONE,8,3                 ; @NLMSG_DONE
	.comm	_NLMSG_ERROR,8,3                ; @NLMSG_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_nl_getmsg
.subsections_via_symbols
