	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageXbmCtx                  ## -- Begin function gdImageXbmCtx
	.p2align	4, 0x90
_gdImageXbmCtx:                         ## @gdImageXbmCtx
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	%rsi, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r12
	testq	%rax, %rax
	cmoveq	%r14, %r12
	movq	%r12, %rdi
	movl	$92, %esi
	callq	_strrchr
	leaq	1(%rax), %rdi
	testq	%rax, %rax
	cmoveq	%r12, %rdi
	callq	_estrdup
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movb	$0, (%r14)
LBB0_3:
	movq	%r12, %rdi
	callq	_strlen
	testq	%rax, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_27
## %bb.4:
	movq	%rax, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12,%r15), %edi
	callq	_isupper
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	(%r12,%r15), %edi
	callq	_islower
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	(%r12,%r15), %edi
	callq	_isdigit
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$95, (%r12,%r15)
	jmp	LBB0_9
LBB0_10:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_27:
	movq	%r12, %rdi
	callq	_efree
	leaq	L_.str.1(%rip), %rdi
	callq	_estrdup
	movq	%rax, %r12
LBB0_11:
	movl	%r13d, %edi
	callq	_gdImageSX
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gdCtxPrintf
	movl	%r13d, %edi
	callq	_gdImageSY
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gdCtxPrintf
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_gdCtxPrintf
	movq	%r12, %rdi
	callq	_efree
	movl	%r13d, %edi
	callq	_gdImageSX
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_gdImageSY
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_26
## %bb.12:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	negl	%eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_26
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=2
	incl	%r13d
	movq	%r15, %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_gdCtxPrintf
	movl	$1, %r15d
	movl	%r13d, %ebx
	movl	-72(%rbp), %r13d                ## 4-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=2
	incl	%r12d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addl	%r12d, %eax
	je	LBB0_25
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_gdImageGetPixel
	movl	%r15d, %r14d
	cmpl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	xorl	%r14d, %r14d
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	orl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	cmpl	$128, %r15d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=2
	addl	%r15d, %r15d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r13d
	testl	%ebx, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_gdCtxPrintf
	imull	$-1431655765, %ebx, %eax        ## imm = 0xAAAAAAAB
	addl	$715827880, %eax                ## imm = 0x2AAAAAA8
	rorl	$2, %eax
	movl	%ebx, %r13d
	cmpl	$357913940, %eax                ## imm = 0x15555554
	ja	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_gdCtxPrintf
	movl	$12, %r13d
	jmp	LBB0_22
LBB0_26:
	leaq	L_.str.8(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdCtxPrintf                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".XBM"

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

L_.str.2:                               ## @.str.2
	.asciz	"#define %s_width %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"#define %s_height %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"static unsigned char %s_bits[] = {\n  "

L_.str.5:                               ## @.str.5
	.asciz	", "

L_.str.6:                               ## @.str.6
	.asciz	"\n  "

L_.str.7:                               ## @.str.7
	.asciz	"0x%02X"

L_.str.8:                               ## @.str.8
	.asciz	"};\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageXbmCtx                  ; -- Begin function gdImageXbmCtx
	.p2align	2
_gdImageXbmCtx:                         ; @gdImageXbmCtx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x22, x22, x0, eq
	mov	x0, x22
	mov	w1, #92
	bl	_strrchr
	cmp	x0, #0
	csinc	x0, x22, x0, eq
	bl	_estrdup
	mov	x22, x0
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbnz	w0, LBB0_3
; %bb.2:
	strb	wzr, [x23]
LBB0_3:
	mov	x0, x22
	bl	_strlen
	cbz	x0, LBB0_10
; %bb.4:
	mov	x23, x0
	mov	x24, #0
	mov	w25, #95
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	cmp	x23, x24
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22, x24]
	bl	_isupper
	cbnz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsb	w0, [x22, x24]
	bl	_islower
	cbnz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsb	w0, [x22, x24]
	bl	_isdigit
	cbnz	w0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	w25, [x22, x24]
	b	LBB0_5
LBB0_10:
	mov	x0, x22
	bl	_efree
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_estrdup
	mov	x22, x0
LBB0_11:
	mov	x0, x21
	bl	_gdImageSX
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gdCtxPrintf
	mov	x0, x21
	bl	_gdImageSY
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_gdCtxPrintf
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_gdCtxPrintf
	mov	x0, x22
	bl	_efree
	mov	x0, x21
	bl	_gdImageSX
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x21
	bl	_gdImageSY
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	cmp	w0, #1
	b.lt	LBB0_24
; %bb.12:
	mov	w26, #0
	mov	w24, #0
	mov	w23, #0
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	neg	w22, w8
Lloh10:
	adrp	x25, l_.str.7@PAGE
Lloh11:
	add	x25, x25, l_.str.7@PAGEOFF
	mov	w27, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w24, w24, #1
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w24, w8
	b.eq	LBB0_24
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w28, #0
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w26, w26, #1
	str	x23, [sp]
	mov	x0, x19
	mov	x1, x25
	bl	_gdCtxPrintf
	mov	w23, #0
	mov	w27, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w28, w28, #1
	cmn	w22, w28
	b.eq	LBB0_13
LBB0_18:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x28
	mov	x2, x24
	bl	_gdImageGetPixel
	cmp	w0, w20
	csel	w8, w27, wzr, eq
	orr	w23, w8, w23
	cmp	w27, #128
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	w8, w22, w28
	cmn	w8, #1
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	lsl	w27, w27, #1
	b	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=2
	cbz	w26, LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x19
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_gdCtxPrintf
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	mov	w9, #43688
	movk	w9, #10922, lsl #16
	madd	w8, w26, w8, w9
	ror	w8, w8, #2
	mov	w9, #21844
	movk	w9, #5461, lsl #16
	cmp	w8, w9
	b.hi	LBB0_16
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x19
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_gdCtxPrintf
	mov	w26, #12
	b	LBB0_16
LBB0_24:
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_gdCtxPrintf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".XBM"

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

l_.str.2:                               ; @.str.2
	.asciz	"#define %s_width %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"#define %s_height %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"static unsigned char %s_bits[] = {\n  "

l_.str.5:                               ; @.str.5
	.asciz	", "

l_.str.6:                               ; @.str.6
	.asciz	"\n  "

l_.str.7:                               ; @.str.7
	.asciz	"0x%02X"

l_.str.8:                               ; @.str.8
	.asciz	"};\n"

.subsections_via_symbols
