	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avr_custom_spm_page_fill
_avr_custom_spm_page_fill:              ## @avr_custom_spm_page_fill
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpl	$0, 4(%rax)
	je	LBB0_7
## %bb.3:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	___esil_pop_argument
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	___esil_pop_argument
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	-24(%rbp), %eax
	movl	%eax, -32(%rbp)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	___esil_pop_argument
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_get_cpu_model
	movq	_CPU_CONST_PARAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	callq	_const_by_name
	movl	%eax, %edi
	callq	_const_get_value
	movl	%eax, %edi
	callq	_MASK
                                        ## kill: def $eax killed $eax def $rax
	xorl	$1, %eax
	andl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -20(%rbp)
	leaq	-32(%rbp), %rdx
	movl	$1, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %ecx
	callq	_r_anal_esil_mem_write
	movl	-20(%rbp), %esi
	leal	1(%rsi), %eax
	movl	%eax, -20(%rbp)
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$1, %ecx
	callq	_r_anal_esil_mem_write
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_CONST_PARAM,4,2            ## @CPU_CONST_PARAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"page_size"

	.no_dead_strip	_avr_custom_spm_page_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avr_custom_spm_page_fill
_avr_custom_spm_page_fill:              ; @avr_custom_spm_page_fill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_7
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	bl	___esil_pop_argument
	cbz	w0, LBB0_7
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	___esil_pop_argument
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w8, [sp, #8]
	str	w8, [sp, #4]
	add	x1, sp, #8
	mov	x0, x19
	bl	___esil_pop_argument
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w8, [sp, #8]
	str	w8, [sp]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_get_cpu_model
Lloh0:
	adrp	x8, _CPU_CONST_PARAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPU_CONST_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_const_by_name
	bl	_const_get_value
	bl	_MASK
	eor	w8, w0, #0x1
	ldr	w9, [sp, #12]
	and	w1, w9, w8
	add	w8, w1, #1
	str	w8, [sp, #12]
	mov	w20, #1
	add	x2, sp, #4
	mov	x0, x19
	mov	w3, #1
	bl	_r_anal_esil_mem_write
	ldr	w1, [sp, #12]
	add	w8, w1, #1
	str	w8, [sp, #12]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #1
	bl	_r_anal_esil_mem_write
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_CONST_PARAM,4,2            ; @CPU_CONST_PARAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"page_size"

	.no_dead_strip	_avr_custom_spm_page_fill
.subsections_via_symbols
