	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __correct_eeprom_dest_address
___correct_eeprom_dest_address:         ## @__correct_eeprom_dest_address
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_EEPROM_TABLE_RECORD_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	%edi, %ebx
	movq	_EEPROM_SIZE_BYTES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movq	_EEPROM_RECORD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	movl	%edi, %eax
	movq	_EEPROM_ADDR_MSB_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%esi, %ecx
	andl	%edi, %ecx
	andl	%ebx, %esi
	cmpl	%esi, %ecx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	andl	(%r14), %ebx
	movl	%ebx, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_TABLE_RECORD_SIZE,4,2   ## @EEPROM_TABLE_RECORD_SIZE
	.comm	_EEPROM_SIZE_BYTES,4,2          ## @EEPROM_SIZE_BYTES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reached end of EEPROM memory, jumping to 0 and overriding old record"

	.comm	_EEPROM_RECORD_START,4,2        ## @EEPROM_RECORD_START
	.comm	_EEPROM_ADDR_MSB_MASK,4,2       ## @EEPROM_ADDR_MSB_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Reached end of EEPROM memory page, jumping to next: %lx"

	.no_dead_strip	___correct_eeprom_dest_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __correct_eeprom_dest_address
___correct_eeprom_dest_address:         ; @__correct_eeprom_dest_address
	.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
Lloh0:
	adrp	x8, _EEPROM_TABLE_RECORD_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_TABLE_RECORD_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EEPROM_SIZE_BYTES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EEPROM_SIZE_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w19, w8, w0
	cmp	w19, w9
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
Lloh8:
	adrp	x8, _EEPROM_RECORD_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEPROM_RECORD_START@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_2:
Lloh11:
	adrp	x20, _EEPROM_ADDR_MSB_MASK@GOTPAGE
Lloh12:
	ldr	x20, [x20, _EEPROM_ADDR_MSB_MASK@GOTPAGEOFF]
	ldr	w8, [x20]
	and	w9, w8, w0
	and	w1, w8, w19
	cmp	w9, w1
	b.eq	LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w8, [x20]
	and	w0, w8, w19
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_TABLE_RECORD_SIZE,4,2   ; @EEPROM_TABLE_RECORD_SIZE
	.comm	_EEPROM_SIZE_BYTES,4,2          ; @EEPROM_SIZE_BYTES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reached end of EEPROM memory, jumping to 0 and overriding old record"

	.comm	_EEPROM_RECORD_START,4,2        ; @EEPROM_RECORD_START
	.comm	_EEPROM_ADDR_MSB_MASK,4,2       ; @EEPROM_ADDR_MSB_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Reached end of EEPROM memory page, jumping to next: %lx"

	.no_dead_strip	___correct_eeprom_dest_address
.subsections_via_symbols
