	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_cHRM_fixed           ## -- Begin function png_write_cHRM_fixed
	.p2align	4, 0x90
_png_write_cHRM_fixed:                  ## @png_write_cHRM_fixed
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -208(%rbp)                 ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, -180(%rbp)                ## 4-byte Spill
	movq	32(%rbp), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	24(%rbp), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	cmpq	$80000, %r13                    ## imm = 0x13880
	jg	LBB0_3
## %bb.1:
	cmpq	$80000, %r15                    ## imm = 0x13880
	jg	LBB0_3
## %bb.2:
	leaq	(%r15,%r13), %rax
	cmpq	$100001, %rax                   ## imm = 0x186A1
	jge	LBB0_3
## %bb.5:
	leaq	-176(%rbp), %rdi
	movl	%r13d, %esi
	callq	_png_save_uint_32
	leaq	-160(%rbp), %rdi
	movl	%r15d, %esi
	callq	_png_save_uint_32
	leaq	(%r14,%r12), %rax
	cmpq	$100001, %rax                   ## imm = 0x186A1
	jl	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	-180(%rbp), %edi                ## 4-byte Reload
	callq	_png_warning
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_8:
	leaq	-144(%rbp), %rdi
	movl	%r12d, %esi
	callq	_png_save_uint_32
	leaq	-128(%rbp), %rdi
	movl	%r14d, %esi
	callq	_png_save_uint_32
	movq	-208(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rbx,%rsi), %rax
	cmpq	$100001, %rax                   ## imm = 0x186A1
	jl	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_7
LBB0_10:
	leaq	-112(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_png_save_uint_32
	leaq	-96(%rbp), %rdi
	movl	%ebx, %esi
	callq	_png_save_uint_32
	movq	-200(%rbp), %r14                ## 8-byte Reload
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	leaq	(%r14,%rsi), %rax
	cmpq	$100001, %rax                   ## imm = 0x186A1
	jl	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
LBB0_7:
	movl	-180(%rbp), %edi                ## 4-byte Reload
	callq	_png_warning
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	-80(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_png_save_uint_32
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	callq	_png_save_uint_32
	movq	_png_cHRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-176(%rbp), %rdx
	movl	-180(%rbp), %edi                ## 4-byte Reload
	movl	$32, %ecx
	callq	_png_write_chunk
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_write_cHRM\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid fixed cHRM white point specified"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"white_x=%ld, white_y=%ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid cHRM fixed red point specified"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid fixed cHRM green point specified"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid fixed cHRM blue point specified"

	.comm	_png_cHRM,4,2                   ## @png_cHRM
	.comm	_PNG_cHRM,4,2                   ## @PNG_cHRM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_cHRM_fixed           ; -- Begin function png_write_cHRM_fixed
	.p2align	2
_png_write_cHRM_fixed:                  ; @png_write_cHRM_fixed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x20, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x26, x3
	mov	x25, x2
	mov	x27, x1
	mov	x19, x0
	ldr	x21, [x29, #16]
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	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	mov	w8, #14464
	movk	w8, #1, lsl #16
	cmp	x27, x8
	b.gt	LBB0_5
; %bb.1:
	cmp	x25, x8
	b.gt	LBB0_5
; %bb.2:
	mov	w28, #34464
	movk	w28, #1, lsl #16
	add	x8, x25, x27
	cmp	x8, x28
	b.gt	LBB0_5
; %bb.3:
	str	x20, [sp]                       ; 8-byte Folded Spill
	add	x20, sp, #8
	add	x0, sp, #8
	mov	x1, x27
	bl	_png_save_uint_32
	add	x0, x20, #16
	mov	x1, x25
	bl	_png_save_uint_32
	add	x8, x24, x26
	cmp	x8, x28
	b.le	LBB0_7
; %bb.4:
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_warning
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.6:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x27
	mov	x3, x25
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	b	_fprintf
LBB0_7:
	add	x0, x20, #32
	mov	x1, x26
	bl	_png_save_uint_32
	add	x0, x20, #48
	mov	x1, x24
	bl	_png_save_uint_32
	add	x8, x22, x23
	cmp	x8, x28
	b.le	LBB0_9
; %bb.8:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_9:
	add	x24, sp, #8
	add	x0, x24, #64
	mov	x1, x23
	bl	_png_save_uint_32
	add	x0, x24, #80
	mov	x1, x22
	bl	_png_save_uint_32
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	add	x8, x21, x1
	cmp	x8, x28
	b.le	LBB0_14
; %bb.10:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_png_warning
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_14:
	add	x0, x24, #96
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_png_save_uint_32
	add	x0, x24, #112
	mov	x1, x21
	bl	_png_save_uint_32
Lloh24:
	adrp	x8, _png_cHRM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _png_cHRM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #32
	bl	_png_write_chunk
	b	LBB0_12
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_write_cHRM\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid fixed cHRM white point specified"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"white_x=%ld, white_y=%ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid cHRM fixed red point specified"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid fixed cHRM green point specified"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid fixed cHRM blue point specified"

	.comm	_png_cHRM,4,2                   ; @png_cHRM
	.comm	_PNG_cHRM,4,2                   ; @PNG_cHRM
.subsections_via_symbols
