	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sst25l_match_device
_sst25l_match_device:                   ## @sst25l_match_device
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_SST25L_CMD_READ_ID@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -46(%rbp)
	movl	$-16777216, -45(%rbp)           ## imm = 0xFF000000
	movb	$-1, -41(%rbp)
	leaq	-46(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	%rax, -72(%rbp)
	movl	$6, -64(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movzbl	-41(%rbp), %r15d
	movq	_sst25l_flash_info@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpb	%r15b, (%rdi,%rbx)
	leaq	(%rdi,%rbx), %rax
	cmoveq	%rax, %r13
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.5:
	testq	%r13, %r13
	jne	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SST25L_CMD_READ_ID,1,0         ## @SST25L_CMD_READ_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading device id\n"

	.comm	_sst25l_flash_info,8,3          ## @sst25l_flash_info
L_.str.1:                               ## @.str.1
	.asciz	"unknown id %.4x\n"

	.no_dead_strip	_sst25l_match_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sst25l_match_device
_sst25l_match_device:                   ; @sst25l_match_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x0, sp, #40
	bl	_spi_message_init
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _SST25L_CMD_READ_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SST25L_CMD_READ_ID@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #10]
	mov	w8, #-16777216
	stur	w8, [sp, #11]
	mov	w8, #255
	strb	w8, [sp, #15]
	add	x8, sp, #10
	stp	x8, x8, [sp, #16]
	mov	w8, #6
	str	w8, [sp, #32]
	add	x0, sp, #16
	add	x1, sp, #40
	bl	_spi_message_add_tail
	add	x1, sp, #40
	mov	x0, x19
	bl	_spi_sync
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldrb	w21, [sp, #15]
Lloh2:
	adrp	x22, _sst25l_flash_info@GOTPAGE
Lloh3:
	ldr	x22, [x22, _sst25l_flash_info@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	add	x8, x0, x23
	ldrb	w9, [x8]
	cmp	w9, w21
	csel	x20, x8, x20, eq
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_3
; %bb.4:
	cbnz	x20, LBB0_8
LBB0_5:
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SST25L_CMD_READ_ID,1,0         ; @SST25L_CMD_READ_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading device id\n"

	.comm	_sst25l_flash_info,8,3          ; @sst25l_flash_info
l_.str.1:                               ; @.str.1
	.asciz	"unknown id %.4x\n"

	.no_dead_strip	_sst25l_match_device
.subsections_via_symbols
