	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_logo_gray256
_write_logo_gray256:                    ## @write_logo_gray256
	.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	_logo_height@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.1:
	movq	_logo_width@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	xorl	%ebx, %ebx
	movq	_logo_data@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_logo_height@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	%ecx, %edx
	cmpq	%rdx, %rbx
	jae	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	movl	$0, %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movl	(%r12), %eax
	cmpq	%rax, %r14
	jae	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r14,4), %edi
	callq	_is_gray
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	callq	_die
	jmp	LBB0_6
LBB0_9:
	xorl	%eax, %eax
	callq	_write_header
	movq	_logo_height@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.10:
	movq	_logo_width@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%r14d, %r14d
	movq	_logo_data@GOTPCREL(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	movl	%ecx, %edx
	cmpq	%rdx, %r14
	jae	LBB0_16
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	testl	%eax, %eax
	movl	$0, %eax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_write_hex
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_logo_height@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_15
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_footer                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_logo_height,4,2                ## @logo_height
	.comm	_logo_width,4,2                 ## @logo_width
	.comm	_logo_data,8,3                  ## @logo_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Image must be grayscale\n"

	.no_dead_strip	_write_logo_gray256
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_logo_gray256
_write_logo_gray256:                    ; @write_logo_gray256
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, _logo_height@GOTPAGE
Lloh1:
	ldr	x20, [x20, _logo_height@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _logo_width@GOTPAGE
Lloh3:
	ldr	x21, [x21, _logo_width@GOTPAGEOFF]
Lloh4:
	adrp	x22, _logo_data@GOTPAGE
Lloh5:
	ldr	x22, [x22, _logo_data@GOTPAGEOFF]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x23, #0
	ldr	w9, [x21]
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cbz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	ldr	w9, [x21]
	cmp	x24, x9
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w0, [x8, x24, lsl #2]
	bl	_is_gray
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	bl	_die
	b	LBB0_6
LBB0_9:
	bl	_write_header
	ldr	w8, [x20]
	cbz	w8, LBB0_16
; %bb.10:
	mov	x19, #0
	ldr	w9, [x21]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x19, x19, #1
	cmp	x19, w8, uxtw
	b.hs	LBB0_16
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cbz	w9, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x23, #0
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w0, [x8, x23, lsl #2]
	bl	_write_hex
	add	x23, x23, #1
	ldr	w9, [x21]
	cmp	x23, x9
	b.lo	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x20]
	b	LBB0_11
LBB0_16:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_write_footer
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_logo_height,4,2                ; @logo_height
	.comm	_logo_width,4,2                 ; @logo_width
	.comm	_logo_data,8,3                  ; @logo_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Image must be grayscale\n"

	.no_dead_strip	_write_logo_gray256
.subsections_via_symbols
