	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jimage_verify_default
_jimage_verify_default:                 ## @jimage_verify_default
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rsi
	movq	_STAG_MAGIC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_1
## %bb.2:
	movq	8(%rdi), %rax
	movq	_SCH2_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	16(%rdi), %rax
	cmpq	24(%rdi), %rax
	jne	LBB0_5
## %bb.6:
	movq	_STAG_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	32(%rdi), %rcx
	movq	_SCH2_VER@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_11
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
LBB0_10:
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAG_MAGIC,8,3                 ## @STAG_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid jImage stag header magic: %04x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCH2_MAGIC,8,3                 ## @SCH2_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"invalid jImage sch2 header magic: %04x\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid jImage stag header cmark: %02x\n"

	.comm	_STAG_ID,8,3                    ## @STAG_ID
L_.str.3:                               ## @.str.3
	.asciz	"invalid jImage stag header id: %02x\n"

	.comm	_SCH2_VER,8,3                   ## @SCH2_VER
L_.str.4:                               ## @.str.4
	.asciz	"invalid jImage sch2 header version: %02x\n"

	.no_dead_strip	_jimage_verify_default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jimage_verify_default
_jimage_verify_default:                 ; @jimage_verify_default
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x1, [x0]
Lloh0:
	adrp	x8, _STAG_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STAG_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _SCH2_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCH2_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldp	x8, x9, [x0, #16]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
Lloh6:
	adrp	x9, _STAG_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STAG_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x0, #32]
Lloh9:
	adrp	x9, _SCH2_VER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SCH2_VER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_11:
	bl	_pr_debug
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_STAG_MAGIC,8,3                 ; @STAG_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid jImage stag header magic: %04x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCH2_MAGIC,8,3                 ; @SCH2_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"invalid jImage sch2 header magic: %04x\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid jImage stag header cmark: %02x\n"

	.comm	_STAG_ID,8,3                    ; @STAG_ID
l_.str.3:                               ; @.str.3
	.asciz	"invalid jImage stag header id: %02x\n"

	.comm	_SCH2_VER,8,3                   ; @SCH2_VER
l_.str.4:                               ; @.str.4
	.asciz	"invalid jImage sch2 header version: %02x\n"

	.no_dead_strip	_jimage_verify_default
.subsections_via_symbols
