	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wdt87xx_validate_fw_chunk
_wdt87xx_validate_fw_chunk:             ## @wdt87xx_validate_fw_chunk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CHUNK_ID_FRWR@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_FW_CHUNK_PAYLOAD_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %rdi
	callq	_get_unaligned_le32
	movq	_WDT_FIRMWARE_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHUNK_ID_FRWR,4,2              ## @CHUNK_ID_FRWR
	.comm	_FW_CHUNK_PAYLOAD_OFFSET,4,2    ## @FW_CHUNK_PAYLOAD_OFFSET
	.comm	_WDT_FIRMWARE_ID,8,3            ## @WDT_FIRMWARE_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wdt87xx_validate_fw_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wdt87xx_validate_fw_chunk
_wdt87xx_validate_fw_chunk:             ; @wdt87xx_validate_fw_chunk
	.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
Lloh0:
	adrp	x8, _CHUNK_ID_FRWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHUNK_ID_FRWR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FW_CHUNK_PAYLOAD_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_CHUNK_PAYLOAD_OFFSET@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x0, x0, x8
	bl	_get_unaligned_le32
Lloh6:
	adrp	x8, _WDT_FIRMWARE_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WDT_FIRMWARE_ID@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CHUNK_ID_FRWR,4,2              ; @CHUNK_ID_FRWR
	.comm	_FW_CHUNK_PAYLOAD_OFFSET,4,2    ; @FW_CHUNK_PAYLOAD_OFFSET
	.comm	_WDT_FIRMWARE_ID,8,3            ; @WDT_FIRMWARE_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wdt87xx_validate_fw_chunk
.subsections_via_symbols
