	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _gdImageWBMPCtx
__gdImageWBMPCtx:                       ## @_gdImageWBMPCtx
	.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, %r12
	movl	%esi, %r15d
	movl	%edi, %ebx
	callq	_gdImageSX
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_gdImageSY
	movq	_WBMP_WHITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_createwbmp
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_gdImageSY
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	movq	%rax, %r14
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movl	%ebx, %edi
	callq	_gdImageSY
	cmpl	%eax, %r13d
	jge	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	%ebx, %edi
	callq	_gdImageSX
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %r12
	shlq	$2, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %edi
	callq	_gdImageSX
	incq	%r14
	cmpl	%eax, %r14d
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_gdImageGetPixel
	cmpl	%r15d, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_WBMP_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	addq	%r12, %rcx
	movl	%eax, (%rcx,%r14,4)
	jmp	LBB0_8
LBB0_11:
	movq	_gd_putout@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_writewbmp
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_freewbmp
	testq	%r14, %r14
	je	LBB0_12
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_14:
	callq	_gd_error
	movl	$1, %eax
	jmp	LBB0_15
LBB0_12:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WBMP_WHITE,4,2                 ## @WBMP_WHITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create WBMP"

	.comm	_WBMP_BLACK,4,2                 ## @WBMP_BLACK
	.comm	_gd_putout,4,2                  ## @gd_putout
L_.str.1:                               ## @.str.1
	.asciz	"Could not save WBMP"

	.no_dead_strip	__gdImageWBMPCtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _gdImageWBMPCtx
__gdImageWBMPCtx:                       ; @_gdImageWBMPCtx
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_gdImageSX
	mov	x22, x0
	mov	x0, x21
	bl	_gdImageSY
	mov	x1, x0
Lloh0:
	adrp	x8, _WBMP_WHITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WBMP_WHITE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_createwbmp
	cbz	x0, LBB0_12
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	bl	_gdImageSY
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.2:
	mov	w25, #0
	mov	w23, #0
Lloh3:
	adrp	x26, _WBMP_BLACK@GOTPAGE
Lloh4:
	ldr	x26, [x26, _WBMP_BLACK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w25, w25, w24
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	mov	x0, x21
	bl	_gdImageSY
	cmp	w23, w0
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x21
	bl	_gdImageSX
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	sbfiz	x27, x25, #2, #32
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	bl	_gdImageSX
	add	x24, x24, #1
	cmp	w24, w0
	b.ge	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_gdImageGetPixel
	cmp	w0, w20
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x26]
	ldr	x9, [x22]
	add	x9, x9, x27
	str	w8, [x9, x24, lsl #2]
	b	LBB0_7
LBB0_10:
Lloh5:
	adrp	x1, _gd_putout@GOTPAGE
Lloh6:
	ldr	x1, [x1, _gd_putout@GOTPAGEOFF]
	mov	x0, x22
	mov	x2, x19
	bl	_writewbmp
	mov	x19, x0
	mov	x0, x22
	bl	_freewbmp
	cbz	x19, LBB0_14
; %bb.11:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_13:
	bl	_gd_error
	mov	w0, #1
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WBMP_WHITE,4,2                 ; @WBMP_WHITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create WBMP"

	.comm	_WBMP_BLACK,4,2                 ; @WBMP_BLACK
	.comm	_gd_putout,4,2                  ; @gd_putout
l_.str.1:                               ; @.str.1
	.asciz	"Could not save WBMP"

	.no_dead_strip	__gdImageWBMPCtx
.subsections_via_symbols
