	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_check_header               ## -- Begin function fdt_check_header
	.p2align	4, 0x90
_fdt_check_header:                      ## @fdt_check_header
	.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
	callq	_fdt_magic
	movq	_FDT_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_fdt_version
	movq	_FDT_FIRST_SUPPORTED_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_fdt_last_comp_version
	movq	%rax, %rcx
	movq	_FDT_LAST_SUPPORTED_VERSION@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jle	LBB0_9
LBB0_2:
	movq	_FDT_ERR_BADVERSION@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	callq	_fdt_magic
	movq	_FDT_SW_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_fdt_size_dt_struct
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.6:
	movq	_FDT_ERR_BADSTATE@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_FDT_ERR_BADMAGIC@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_MAGIC,8,3                  ## @FDT_MAGIC
	.comm	_FDT_FIRST_SUPPORTED_VERSION,8,3 ## @FDT_FIRST_SUPPORTED_VERSION
	.comm	_FDT_ERR_BADVERSION,4,2         ## @FDT_ERR_BADVERSION
	.comm	_FDT_LAST_SUPPORTED_VERSION,8,3 ## @FDT_LAST_SUPPORTED_VERSION
	.comm	_FDT_SW_MAGIC,8,3               ## @FDT_SW_MAGIC
	.comm	_FDT_ERR_BADSTATE,4,2           ## @FDT_ERR_BADSTATE
	.comm	_FDT_ERR_BADMAGIC,4,2           ## @FDT_ERR_BADMAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_check_header               ; -- Begin function fdt_check_header
	.p2align	2
_fdt_check_header:                      ; @fdt_check_header
	.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
	bl	_fdt_magic
Lloh0:
	adrp	x8, _FDT_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_fdt_version
Lloh3:
	adrp	x8, _FDT_FIRST_SUPPORTED_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDT_FIRST_SUPPORTED_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_fdt_last_comp_version
Lloh6:
	adrp	x8, _FDT_LAST_SUPPORTED_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FDT_LAST_SUPPORTED_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _FDT_ERR_BADVERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FDT_ERR_BADVERSION@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_fdt_magic
Lloh11:
	adrp	x8, _FDT_SW_MAGIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FDT_SW_MAGIC@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_fdt_size_dt_struct
	cbz	x0, LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _FDT_ERR_BADMAGIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FDT_ERR_BADMAGIC@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _FDT_ERR_BADSTATE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FDT_ERR_BADSTATE@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_MAGIC,8,3                  ; @FDT_MAGIC
	.comm	_FDT_FIRST_SUPPORTED_VERSION,8,3 ; @FDT_FIRST_SUPPORTED_VERSION
	.comm	_FDT_ERR_BADVERSION,4,2         ; @FDT_ERR_BADVERSION
	.comm	_FDT_LAST_SUPPORTED_VERSION,8,3 ; @FDT_LAST_SUPPORTED_VERSION
	.comm	_FDT_SW_MAGIC,8,3               ; @FDT_SW_MAGIC
	.comm	_FDT_ERR_BADSTATE,4,2           ; @FDT_ERR_BADSTATE
	.comm	_FDT_ERR_BADMAGIC,4,2           ; @FDT_ERR_BADMAGIC
.subsections_via_symbols
