	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uimage_verify_default
_uimage_verify_default:                 ## @uimage_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_be32_to_cpu
	movq	_IH_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rdi
	movq	_IH_OS_LINUX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_3
## %bb.4:
	movq	16(%rbx), %rdi
	movq	_IH_TYPE_KERNEL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdi
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_6
LBB0_1:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rbx
LBB0_6:
	callq	_be32_to_cpu
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IH_MAGIC,8,3                   ## @IH_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid uImage magic: %08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IH_OS_LINUX,8,3                ## @IH_OS_LINUX
L_.str.1:                               ## @.str.1
	.asciz	"invalid uImage OS: %08x\n"

	.comm	_IH_TYPE_KERNEL,8,3             ## @IH_TYPE_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"invalid uImage type: %08x\n"

	.no_dead_strip	_uimage_verify_default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uimage_verify_default
_uimage_verify_default:                 ; @uimage_verify_default
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	bl	_be32_to_cpu
Lloh0:
	adrp	x8, _IH_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IH_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _IH_OS_LINUX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IH_OS_LINUX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x8, _IH_TYPE_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IH_TYPE_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	x0, [x19]
Lloh9:
	adrp	x19, l_.str@PAGE
Lloh10:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x19, l_.str.1@PAGE
Lloh12:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x19, l_.str.2@PAGE
Lloh14:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_7:
	bl	_be32_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_pr_debug
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IH_MAGIC,8,3                   ; @IH_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid uImage magic: %08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IH_OS_LINUX,8,3                ; @IH_OS_LINUX
l_.str.1:                               ; @.str.1
	.asciz	"invalid uImage OS: %08x\n"

	.comm	_IH_TYPE_KERNEL,8,3             ; @IH_TYPE_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"invalid uImage type: %08x\n"

	.no_dead_strip	_uimage_verify_default
.subsections_via_symbols
