	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_binary_file
_read_binary_file:                      ## @read_binary_file
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	testq	%rdx, %rdx
	jns	LBB0_9
## %bb.1:
	testq	%r13, %r13
	js	LBB0_6
## %bb.2:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_8
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
LBB0_7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	-48(%rbp), %r15
	subq	%r13, %r15
	jmp	LBB0_9
LBB0_6:
	movq	%r13, %r15
	negq	%r15
LBB0_9:
	movq	_MaxAllocSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VARHDRSZ@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	cmpq	%rax, %r15
	jle	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	%ebx, %r12d
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%r12d, %ebx
	movl	%eax, %esi
	callq	_ereport
LBB0_11:
	movq	_PG_BINARY_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_AllocateFile
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	testq	%r13, %r13
	jns	LBB0_18
LBB0_13:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_14:
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.15:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_16:
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_17:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	testq	%r13, %r13
	js	LBB0_13
LBB0_18:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_fseeko
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_21:
	movq	_VARHDRSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r15, %rdi
	callq	_palloc
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_VARDATA
	movl	%eax, %edi
	movl	$1, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_fread
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_23:
	movq	_VARHDRSZ@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_SET_VARSIZE
	movq	%r12, %rdi
	callq	_FreeFile
LBB0_24:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not stat file \"%s\": %m"

	.comm	_MaxAllocSize,8,3               ## @MaxAllocSize
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
L_.str.1:                               ## @.str.1
	.asciz	"requested length too large"

	.comm	_PG_BINARY_R,4,2                ## @PG_BINARY_R
L_.str.2:                               ## @.str.2
	.asciz	"could not open file \"%s\" for reading: %m"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SEEK_END,4,2                   ## @SEEK_END
L_.str.3:                               ## @.str.3
	.asciz	"could not seek in file \"%s\": %m"

L_.str.4:                               ## @.str.4
	.asciz	"could not read file \"%s\": %m"

	.no_dead_strip	_read_binary_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_binary_file
_read_binary_file:                      ; @read_binary_file
	.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	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _ERROR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
	tbz	x2, #63, LBB0_8
; %bb.1:
	tbnz	x20, #63, LBB0_7
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	tbz	x0, #63, LBB0_6
; %bb.3:
	cbz	w23, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _ENOENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
LBB0_5:
	ldr	w21, [x24]
	bl	_errcode_for_file_access
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_6:
	ldr	x8, [sp, #8]
	sub	x21, x8, x20
	b	LBB0_8
LBB0_7:
	neg	x21, x20
LBB0_8:
Lloh10:
	adrp	x8, _MaxAllocSize@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MaxAllocSize@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x25, _VARHDRSZ@GOTPAGE
Lloh14:
	ldr	x25, [x25, _VARHDRSZ@GOTPAGEOFF]
	ldr	x9, [x25]
	sub	x8, x8, x9
	cmp	x21, x8
	b.le	LBB0_10
; %bb.9:
	ldr	w22, [x24]
Lloh15:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_10:
Lloh20:
	adrp	x8, _PG_BINARY_R@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PG_BINARY_R@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AllocateFile
	mov	x22, x0
	cbnz	x0, LBB0_15
; %bb.11:
	cbz	w23, LBB0_14
; %bb.12:
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _ENOENT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_13:
	mov	x20, #0
	b	LBB0_20
LBB0_14:
	ldr	w23, [x24]
	bl	_errcode_for_file_access
	str	x19, [sp]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_15:
Lloh31:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh33:
	adrp	x9, _SEEK_END@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SEEK_END@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x9, x8, lt
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x20
	bl	_fseeko
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w20, [x24]
	bl	_errcode_for_file_access
	str	x19, [sp]
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_17:
	ldr	x8, [x25]
	add	x0, x8, x21
	bl	_palloc
	mov	x20, x0
	bl	_VARDATA
	mov	w1, #1
	mov	x2, x21
	mov	x3, x22
	bl	_fread
	mov	x21, x0
	mov	x0, x22
	bl	_ferror
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w23, [x24]
	bl	_errcode_for_file_access
	str	x19, [sp]
Lloh37:
	adrp	x0, l_.str.4@PAGE
Lloh38:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_19:
	ldr	x8, [x25]
	add	x1, x8, x21
	mov	x0, x20
	bl	_SET_VARSIZE
	mov	x0, x22
	bl	_FreeFile
LBB0_20:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not stat file \"%s\": %m"

	.comm	_MaxAllocSize,8,3               ; @MaxAllocSize
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
l_.str.1:                               ; @.str.1
	.asciz	"requested length too large"

	.comm	_PG_BINARY_R,4,2                ; @PG_BINARY_R
l_.str.2:                               ; @.str.2
	.asciz	"could not open file \"%s\" for reading: %m"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SEEK_END,4,2                   ; @SEEK_END
l_.str.3:                               ; @.str.3
	.asciz	"could not seek in file \"%s\": %m"

l_.str.4:                               ; @.str.4
	.asciz	"could not read file \"%s\": %m"

	.no_dead_strip	_read_binary_file
.subsections_via_symbols
