	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucl_parser_add_fd_full         ## -- Begin function ucl_parser_add_fd_full
	.p2align	4, 0x90
_ucl_parser_add_fd_full:                ## @ucl_parser_add_fd_full
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	callq	_fstat
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_ucl_mmap
	movq	%rax, %r13
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_8
## %bb.3:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_free
LBB0_5:
	movq	$0, (%r15)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_ucl_parser_add_chunk_full
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ucl_munmap
	movl	%r14d, %eax
	jmp	LBB0_10
LBB0_6:
	addq	$8, %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_ucl_create_err
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_7:
	movl	$1, %r12d
	jmp	LBB0_9
LBB0_8:
	addq	$8, %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_ucl_create_err
LBB0_9:
	movl	%r12d, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot stat fd %d: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"cannot mmap fd %d: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucl_parser_add_fd_full         ; -- Begin function ucl_parser_add_fd_full
	.p2align	2
_ucl_parser_add_fd_full:                ; @ucl_parser_add_fd_full
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_fstat
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	ldr	x24, [sp, #8]
	cbz	x24, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x24
	mov	x4, x19
	mov	w5, #0
	bl	_ucl_mmap
Lloh6:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.3:
	mov	x25, x0
	ldr	x0, [x23]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
LBB0_5:
	str	xzr, [x23]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_ucl_parser_add_chunk_full
	mov	x19, x0
	mov	x0, x25
	mov	x1, x24
	bl	_ucl_munmap
	mov	x0, x19
	b	LBB0_10
LBB0_6:
	add	x20, x23, #8
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	add	x20, x23, #8
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x20
	mov	x2, x19
	bl	_ucl_create_err
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot stat fd %d: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"cannot mmap fd %d: %s"

.subsections_via_symbols
