	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_define_bitmap                  ## -- Begin function define_bitmap
	.p2align	4, 0x90
_define_bitmap:                         ## @define_bitmap
	.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
	movq	%rdx, %rax
	movq	%rsi, %r15
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	_FOPEN_RB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rax, %rdi
	callq	_open_file_search
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	movq	-48(%rbp), %r13
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_fatal
LBB0_2:
	movq	-56(%rbp), %rdi
	movq	_BITMAP_SKIP@GOTPCREL(%rip), %r13
	subq	(%r13), %rdi
	callq	_res_alloc
	movq	%rax, %r12
	movq	(%r13), %rax
	testq	%rax, %rax
	jle	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_getc
	incq	%r14
	movq	(%r13), %rax
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rdx
	subq	%rax, %rdx
	movq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_get_data
	movq	%rbx, %rdi
	callq	_fclose
	movq	-48(%rbp), %rdi
	callq	_free
	movq	_RT_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movq	_resources@GOTPCREL(%rip), %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_define_standard_resource
	movq	_RES_TYPE_BITMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	-56(%rbp), %rcx
	subq	(%r13), %rcx
	movq	%rcx, 16(%rax)
	movq	%r12, 8(%rax)
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FOPEN_RB,4,2                   ## @FOPEN_RB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bitmap file"

L_.str.1:                               ## @.str.1
	.asciz	"stat failed on bitmap file `%s': %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_BITMAP_SKIP,8,3                ## @BITMAP_SKIP
	.comm	_resources,4,2                  ## @resources
	.comm	_RT_BITMAP,4,2                  ## @RT_BITMAP
	.comm	_RES_TYPE_BITMAP,4,2            ## @RES_TYPE_BITMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_define_bitmap                  ; -- Begin function define_bitmap
	.p2align	2
_define_bitmap:                         ; @define_bitmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x8, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _FOPEN_RB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FOPEN_RB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x0, x8
	bl	_open_file_search
	mov	x21, x0
	ldr	x0, [sp, #8]
	mov	x1, sp
	bl	_stat
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x22, x0
	ldr	x23, [sp, #8]
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_fatal
LBB0_2:
	ldr	x8, [sp]
Lloh10:
	adrp	x23, _BITMAP_SKIP@GOTPAGE
Lloh11:
	ldr	x23, [x23, _BITMAP_SKIP@GOTPAGEOFF]
	ldr	x9, [x23]
	sub	x0, x8, x9
	bl	_res_alloc
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_getc
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_5:
	ldp	x9, x3, [sp]
	sub	x2, x9, x8
	mov	x0, x21
	mov	x1, x22
	bl	_get_data
	mov	x0, x21
	bl	_fclose
	ldr	x0, [sp, #8]
	bl	_free
Lloh12:
	adrp	x8, _RT_BITMAP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RT_BITMAP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w3, [x19]
Lloh15:
	adrp	x0, _resources@GOTPAGE
Lloh16:
	ldr	x0, [x0, _resources@GOTPAGEOFF]
	mov	x2, x20
	mov	w4, #0
	bl	_define_standard_resource
Lloh17:
	adrp	x8, _RES_TYPE_BITMAP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RES_TYPE_BITMAP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	ldr	x8, [sp]
	ldr	x9, [x23]
	sub	x8, x8, x9
	stp	x22, x8, [x0, #8]
	ldr	w8, [x19]
	str	w8, [x0]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FOPEN_RB,4,2                   ; @FOPEN_RB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bitmap file"

l_.str.1:                               ; @.str.1
	.asciz	"stat failed on bitmap file `%s': %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_BITMAP_SKIP,8,3                ; @BITMAP_SKIP
	.comm	_resources,4,2                  ; @resources
	.comm	_RT_BITMAP,4,2                  ; @RT_BITMAP
	.comm	_RES_TYPE_BITMAP,4,2            ; @RES_TYPE_BITMAP
.subsections_via_symbols
