	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_spi_device_init
_falcon_spi_device_init:                ## @falcon_spi_device_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rcx, %r14
	movl	%edx, (%rbx)
	movq	_SPI_DEV_TYPE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdi
	callq	_SPI_DEV_TYPE_FIELD
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	$1, %r15d
	movl	%edx, 4(%rbx)
	movq	_SPI_DEV_TYPE_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SPI_DEV_TYPE_FIELD
	movl	%eax, 8(%rbx)
	movl	$512, %ecx                      ## imm = 0x200
	xorl	4(%rbx), %ecx
	xorl	$1, %eax
	xorl	%edx, %edx
	orl	%ecx, %eax
	sete	%dl
	movl	%edx, 12(%rbx)
	movq	_SPI_DEV_TYPE_ERASE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SPI_DEV_TYPE_FIELD
	movl	%eax, 16(%rbx)
	movq	_SPI_DEV_TYPE_ERASE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SPI_DEV_TYPE_FIELD
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, 20(%rbx)
	movq	_SPI_DEV_TYPE_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SPI_DEV_TYPE_FIELD
	movl	%eax, %ecx
	shll	%cl, %r15d
	movl	%r15d, 24(%rbx)
	jmp	LBB0_3
LBB0_2:
	movl	$0, 4(%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_DEV_TYPE_SIZE,4,2          ## @SPI_DEV_TYPE_SIZE
	.comm	_SPI_DEV_TYPE_ADDR_LEN,4,2      ## @SPI_DEV_TYPE_ADDR_LEN
	.comm	_SPI_DEV_TYPE_ERASE_CMD,4,2     ## @SPI_DEV_TYPE_ERASE_CMD
	.comm	_SPI_DEV_TYPE_ERASE_SIZE,4,2    ## @SPI_DEV_TYPE_ERASE_SIZE
	.comm	_SPI_DEV_TYPE_BLOCK_SIZE,4,2    ## @SPI_DEV_TYPE_BLOCK_SIZE
	.no_dead_strip	_falcon_spi_device_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_spi_device_init
_falcon_spi_device_init:                ; @falcon_spi_device_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	cbz	x3, LBB0_2
; %bb.1:
	mov	x20, x3
	str	w2, [x19]
Lloh0:
	adrp	x8, _SPI_DEV_TYPE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_DEV_TYPE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x3
	bl	_SPI_DEV_TYPE_FIELD
	mov	w21, #1
	lsl	w8, w21, w0
	str	w8, [x19, #4]
Lloh3:
	adrp	x8, _SPI_DEV_TYPE_ADDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_DEV_TYPE_ADDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SPI_DEV_TYPE_FIELD
	ldr	w8, [x19, #4]
	cmp	w8, #512
	ccmp	w0, #1, #0, eq
	cset	w8, eq
	stp	w0, w8, [x19, #8]
Lloh6:
	adrp	x8, _SPI_DEV_TYPE_ERASE_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_DEV_TYPE_ERASE_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SPI_DEV_TYPE_FIELD
	str	w0, [x19, #16]
Lloh9:
	adrp	x8, _SPI_DEV_TYPE_ERASE_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SPI_DEV_TYPE_ERASE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SPI_DEV_TYPE_FIELD
	lsl	w8, w21, w0
	str	w8, [x19, #20]
Lloh12:
	adrp	x8, _SPI_DEV_TYPE_BLOCK_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPI_DEV_TYPE_BLOCK_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SPI_DEV_TYPE_FIELD
	lsl	w8, w21, w0
	str	w8, [x19, #24]
	b	LBB0_3
LBB0_2:
	str	wzr, [x19, #4]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_DEV_TYPE_SIZE,4,2          ; @SPI_DEV_TYPE_SIZE
	.comm	_SPI_DEV_TYPE_ADDR_LEN,4,2      ; @SPI_DEV_TYPE_ADDR_LEN
	.comm	_SPI_DEV_TYPE_ERASE_CMD,4,2     ; @SPI_DEV_TYPE_ERASE_CMD
	.comm	_SPI_DEV_TYPE_ERASE_SIZE,4,2    ; @SPI_DEV_TYPE_ERASE_SIZE
	.comm	_SPI_DEV_TYPE_BLOCK_SIZE,4,2    ; @SPI_DEV_TYPE_BLOCK_SIZE
	.no_dead_strip	_falcon_spi_device_init
.subsections_via_symbols
