	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_header_valid
_is_header_valid:                       ## @is_header_valid
	.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	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_ntohl
	movl	%eax, %r13d
	movl	8(%rbx), %edi
	callq	_ntohl
	movl	%eax, %r12d
	movl	4(%rbx), %edi
	callq	_ntohl
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_ntohl
	movq	_MIN_WIDTH@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %r13d
	jb	LBB0_6
## %bb.1:
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	ja	LBB0_6
## %bb.2:
	movq	_MIN_HEIGHT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jb	LBB0_6
## %bb.3:
	movq	_MAX_HEIGHT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	ja	LBB0_6
## %bb.4:
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_validate_by_version
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_info_from_header
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_WIDTH,4,2                  ## @MIN_WIDTH
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_MIN_HEIGHT,4,2                 ## @MIN_HEIGHT
	.comm	_MAX_HEIGHT,4,2                 ## @MAX_HEIGHT
	.no_dead_strip	_is_header_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_header_valid
_is_header_valid:                       ; @is_header_valid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_ntohl
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_ntohl
	mov	x22, x0
	ldr	w0, [x19, #4]
	bl	_ntohl
	mov	x20, x0
	ldr	w0, [x19]
	bl	_ntohl
Lloh0:
	adrp	x8, _MIN_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_WIDTH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MAX_WIDTH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_WIDTH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MIN_HEIGHT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MIN_HEIGHT@GOTPAGEOFF]
Lloh8:
	adrp	x11, _MAX_HEIGHT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MAX_HEIGHT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	cmp	w21, w8
	ccmp	w21, w9, #2, hs
	ccmp	w22, w10, #0, ls
	ccmp	w22, w11, #2, hs
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x1, x20
	bl	_validate_by_version
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_info_from_header
	cmp	x0, #0
	cset	w0, ne
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_WIDTH,4,2                  ; @MIN_WIDTH
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_MIN_HEIGHT,4,2                 ; @MIN_HEIGHT
	.comm	_MAX_HEIGHT,4,2                 ; @MAX_HEIGHT
	.no_dead_strip	_is_header_valid
.subsections_via_symbols
