	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_pack_bitmap_1
_open_pack_bitmap_1:                    ## @open_pack_bitmap_1
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_open_pack_index
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_pack_bitmap_filename
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_git_open
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_free
	testl	%r15d, %r15d
	js	LBB0_9
## %bb.2:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fstat
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	cmpq	$0, 24(%r14)
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_warning
LBB0_3:
	movl	%r15d, %edi
	callq	_close
LBB0_8:
	movl	$-1, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, 24(%r14)
	movl	-48(%rbp), %edi
	callq	_xsize_t
	movl	%eax, (%r14)
	movq	_PROT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movl	%eax, %esi
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_xmmap
	movq	%rax, 8(%r14)
	movq	$0, 16(%r14)
	movl	%r15d, %edi
	callq	_close
	movq	%r14, %rdi
	callq	_load_bitmap_header
	testq	%rax, %rax
	jns	LBB0_9
## %bb.7:
	movq	8(%r14), %rdi
	movl	(%r14), %esi
	callq	_munmap
	movq	$0, 8(%r14)
	movl	$0, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ignoring extra bitmap file: %s"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.no_dead_strip	_open_pack_bitmap_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_pack_bitmap_1
_open_pack_bitmap_1:                    ; @open_pack_bitmap_1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_open_pack_index
	cbnz	x0, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_pack_bitmap_filename
	mov	x22, x0
	bl	_git_open
	mov	x20, x0
	mov	x0, x22
	bl	_free
	tbnz	w20, #31, LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x0, x20
	bl	_fstat
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	w1, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
LBB0_5:
	mov	x0, x20
	bl	_close
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	str	x21, [x19, #24]
	ldr	w0, [sp, #8]
	bl	_xsize_t
	mov	x1, x0
	str	w0, [x19]
Lloh2:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x4, x20
	mov	w5, #0
	bl	_xmmap
	stp	x0, xzr, [x19, #8]
	mov	x0, x20
	bl	_close
	mov	x0, x19
	bl	_load_bitmap_header
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_7
; %bb.9:
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	bl	_munmap
	str	xzr, [x19, #8]
	str	wzr, [x19]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ignoring extra bitmap file: %s"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.no_dead_strip	_open_pack_bitmap_1
.subsections_via_symbols
