	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCreateFromXbm           ## -- Begin function gdImageCreateFromXbm
	.p2align	4, 0x90
_gdImageCreateFromXbm:                  ## @gdImageCreateFromXbm
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_XBM_LINE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rewind
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fgets
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_41
## %bb.1:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	$95, %esi
	callq	_strrchr
	leaq	1(%rax), %r15
	testq	%rax, %rax
	cmoveq	%r12, %r15
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	movq	%r13, %rbx
	movl	-96(%rbp), %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmovel	%r12d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cmovel	%r12d, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%r14d, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	movl	%r15d, %r14d
	testq	%rax, %rax
	je	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rax
	movb	$0, -1(%rax,%rbx)
	movq	%rbx, %rdi
	callq	_strlen
	movl	(%r13), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	je	LBB0_40
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	leaq	-96(%rbp), %rcx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_sscanf
	movl	$128, %r15d
	cmpl	$1, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_sscanf
	movl	$32768, %r15d                   ## imm = 0x8000
	cmpl	$1, %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r15d
	testl	%r14d, %r14d
	je	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	$7, %eax
	shrl	$3, %eax
	imull	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_40
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	$95, %esi
	callq	_strrchr
	leaq	1(%rax), %rsi
	testq	%rax, %rax
	cmoveq	%r12, %rsi
	leaq	L_.str.7(%rip), %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_14:
	xorl	%r14d, %r14d
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_41
## %bb.15:
	testl	%r15d, %r15d
	je	LBB0_41
## %bb.16:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_gdImageCreate
	testq	%rax, %rax
	je	LBB0_40
## %bb.17:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$255, %esi
	movl	$255, %edx
	movl	$255, %ecx
	callq	_gdImageColorAllocate
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gdImageColorAllocate
	movb	$0, -54(%rbp)
	movb	$0, -52(%rbp)
	leaq	L_.str.10(%rip), %rdi
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_39
## %bb.18:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_36:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	xorl	%r13d, %r13d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	4(%r14), %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_41
LBB0_37:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_38
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$120, %eax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	cmpl	%ecx, %eax
	jne	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpl	%ecx, %eax
	je	LBB0_38
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_38
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movb	%al, -56(%rbp)
	movq	%rbx, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_38
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	movb	%al, -55(%rbp)
	cmpl	$32768, %r15d                   ## imm = 0x8000
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_38
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	movb	%al, -54(%rbp)
	movq	%rbx, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_38
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=1
	movb	%al, -53(%rbp)
LBB0_29:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	-56(%rbp), %rdi
	leaq	L_.str.8(%rip), %rsi
	leaq	-92(%rbp), %rdx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_19 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_37
## %bb.32:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %esi
	leal	1(%rsi), %r13d
	xorl	%ecx, %ecx
	movl	-92(%rbp), %eax
	andl	%r14d, %eax
	setne	%cl
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_gdImageSetPixel
	cmpl	(%r12), %r13d
	je	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=2
	addl	%r14d, %r14d
	cmpl	%r15d, %r14d
	jle	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_38:
	leaq	L_.str.10(%rip), %rdi
LBB0_39:
	callq	_gd_error
	movq	%r14, %rdi
	callq	_gdImageDestroy
LBB0_40:
	xorl	%r14d, %r14d
LBB0_41:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_43
## %bb.42:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_39
LBB0_43:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_XBM_LINE_SIZE,4,2          ## @MAX_XBM_LINE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#define %s %d"

L_.str.1:                               ## @.str.1
	.asciz	"width"

L_.str.2:                               ## @.str.2
	.asciz	"height"

L_.str.3:                               ## @.str.3
	.asciz	"static unsigned char %s = {"

L_.str.4:                               ## @.str.4
	.asciz	"static char %s = {"

L_.str.5:                               ## @.str.5
	.asciz	"static unsigned short %s = {"

L_.str.6:                               ## @.str.6
	.asciz	"static short %s = {"

L_.str.7:                               ## @.str.7
	.asciz	"bits[]"

	.comm	_EOF,4,2                        ## @EOF
L_.str.8:                               ## @.str.8
	.asciz	"%x"

L_.str.9:                               ## @.str.9
	.asciz	"invalid XBM"

L_.str.10:                              ## @.str.10
	.asciz	"EOF before image was complete"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCreateFromXbm           ; -- Begin function gdImageCreateFromXbm
	.p2align	2
_gdImageCreateFromXbm:                  ; @gdImageCreateFromXbm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _MAX_XBM_LINE_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MAX_XBM_LINE_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	bl	_rewind
	ldr	w1, [x27]
	mov	x0, x20
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_41
; %bb.1:
	stur	wzr, [x29, #-108]               ; 4-byte Folded Spill
	mov	w25, #0
	mov	w22, #0
	mov	w23, #0
	sub	x24, x29, #100
Lloh9:
	adrp	x28, l_.str@PAGE
Lloh10:
	add	x28, x28, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	w1, #95
	bl	_strrchr
	cmp	x0, #0
	mov	x26, x25
	mov	x25, x28
	csinc	x28, x21, x0, eq
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x28
	bl	_strcmp
	ldur	w24, [x29, #-100]
	cmp	w0, #0
	csel	w23, w24, w23, eq
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x28
	mov	x28, x25
	mov	x25, x26
	bl	_strcmp
	cmp	w0, #0
	csel	w22, w24, w22, eq
	sub	x24, x29, #100
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x27]
	add	x8, x8, x20
	sturb	wzr, [x8, #-1]
	mov	x0, x20
	bl	_strlen
	ldr	w8, [x27]
	sub	w8, w8, #1
	cmp	w0, w8
	b.eq	LBB0_41
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	x21, x24, [sp, #-16]!
	mov	x0, x20
	mov	x1, x28
	bl	_sscanf
	add	sp, sp, #16
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x21, [sp, #-16]!
	mov	x0, x20
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sscanf
	add	sp, sp, #16
	cmp	w0, #1
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x21, [sp, #-16]!
	mov	x0, x20
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sscanf
	add	sp, sp, #16
	cmp	w0, #1
	b.ne	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #128
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w23, #7
	lsr	w8, w8, #3
	mul	w8, w8, w22
	stur	w8, [x29, #-108]                ; 4-byte Folded Spill
	cbz	w8, LBB0_41
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	w1, #95
	bl	_strrchr
	cmp	x0, #0
	csinc	x1, x21, x0, eq
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_3
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x21, [sp, #-16]!
	mov	x0, x20
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_sscanf
	add	sp, sp, #16
	cmp	w0, #1
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x21, [sp, #-16]!
	mov	x0, x20
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_sscanf
	add	sp, sp, #16
	cmp	w0, #1
	b.ne	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #32768
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w25, LBB0_9
	b	LBB0_3
LBB0_15:
	mov	x20, #0
	ldur	w26, [x29, #-108]               ; 4-byte Folded Reload
	cbz	w26, LBB0_42
; %bb.16:
	cbz	w25, LBB0_42
; %bb.17:
	mov	x0, x23
	mov	x1, x22
	bl	_gdImageCreate
	mov	x20, x0
	cbz	x0, LBB0_42
; %bb.18:
	mov	x0, x20
	mov	w1, #255
	mov	w2, #255
	mov	w3, #255
	bl	_gdImageColorAllocate
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_gdImageColorAllocate
	sturb	wzr, [x29, #-94]
	sturb	wzr, [x29, #-92]
	cmp	w26, #1
	b.lt	LBB0_39
; %bb.19:
	mov	w22, #0
	mov	w21, #0
	mov	w24, #0
Lloh25:
	adrp	x27, _EOF@GOTPAGE
Lloh26:
	ldr	x27, [x27, _EOF@GOTPAGEOFF]
	sub	x28, x29, #104
Lloh27:
	adrp	x23, l_.str.8@PAGE
Lloh28:
	add	x23, x23, l_.str.8@PAGEOFF
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	sub	x28, x29, #104
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	w24, w24, #1
	cmp	w24, w26
	b.eq	LBB0_39
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
	mov	x0, x19
	bl	_getc
	ldr	w8, [x27]
	cmp	w0, #120
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	w0, w8
	b.ne	LBB0_22
LBB0_24:                                ;   in Loop: Header=BB0_22 Depth=1
	cmp	w0, w8
	b.eq	LBB0_39
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x19
	bl	_getc
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_39
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	sturb	w0, [x29, #-96]
	mov	x0, x19
	bl	_getc
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_39
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=1
	sturb	w0, [x29, #-95]
	cmp	w25, #8, lsl #12                ; =32768
	b.ne	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x19
	bl	_getc
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_39
; %bb.29:                               ;   in Loop: Header=BB0_22 Depth=1
	sturb	w0, [x29, #-94]
	mov	x0, x19
	bl	_getc
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_39
; %bb.30:                               ;   in Loop: Header=BB0_22 Depth=1
	sturb	w0, [x29, #-93]
LBB0_31:                                ;   in Loop: Header=BB0_22 Depth=1
	str	x28, [sp, #-16]!
	sub	x0, x29, #96
	mov	x1, x23
	bl	_sscanf
	add	sp, sp, #16
	cmp	w0, #1
	b.ne	LBB0_44
; %bb.32:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	w25, #1
	b.lt	LBB0_21
; %bb.33:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w28, #1
LBB0_34:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, x21
	add	w21, w21, #1
	ldur	w8, [x29, #-104]
	tst	w8, w28
	cset	w3, ne
	mov	x0, x20
	mov	x2, x22
	bl	_gdImageSetPixel
	ldr	w8, [x20]
	cmp	w21, w8
	b.eq	LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	lsl	w28, w28, #1
	cmp	w28, w25
	b.le	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_22 Depth=1
	ldur	w26, [x29, #-108]               ; 4-byte Folded Reload
	b	LBB0_20
LBB0_37:                                ;   in Loop: Header=BB0_22 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20, #4]
	cmp	w22, w8
	ldur	w26, [x29, #-108]               ; 4-byte Folded Reload
	b.eq	LBB0_42
; %bb.38:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w21, #0
	b	LBB0_20
LBB0_39:
Lloh29:
	adrp	x0, l_.str.10@PAGE
Lloh30:
	add	x0, x0, l_.str.10@PAGEOFF
LBB0_40:
	bl	_gd_error
	mov	x0, x20
	bl	_gdImageDestroy
LBB0_41:
	mov	x20, #0
LBB0_42:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.43:
	mov	x0, x20
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_44:
Lloh34:
	adrp	x0, l_.str.9@PAGE
Lloh35:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_40
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_XBM_LINE_SIZE,4,2          ; @MAX_XBM_LINE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#define %s %d"

l_.str.1:                               ; @.str.1
	.asciz	"width"

l_.str.2:                               ; @.str.2
	.asciz	"height"

l_.str.3:                               ; @.str.3
	.asciz	"static unsigned char %s = {"

l_.str.4:                               ; @.str.4
	.asciz	"static char %s = {"

l_.str.5:                               ; @.str.5
	.asciz	"static unsigned short %s = {"

l_.str.6:                               ; @.str.6
	.asciz	"static short %s = {"

l_.str.7:                               ; @.str.7
	.asciz	"bits[]"

	.comm	_EOF,4,2                        ; @EOF
l_.str.8:                               ; @.str.8
	.asciz	"%x"

l_.str.9:                               ; @.str.9
	.asciz	"invalid XBM"

l_.str.10:                              ; @.str.10
	.asciz	"EOF before image was complete"

.subsections_via_symbols
