	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sst25l_probe
_sst25l_probe:                          ## @sst25l_probe
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_sst25l_match_device
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, 72(%rax)
	movq	%rax, %rdi
	addq	$64, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, 24(%rbx)
LBB0_6:
	movq	%r14, 56(%rbx)
	movq	_MTD_NORFLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_MTD_CAP_NORFLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movl	4(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	%eax, 8(%rbx)
	imull	8(%r12), %eax
	movl	%eax, 12(%rbx)
	movq	_sst25l_erase@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rbx)
	movq	_sst25l_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
	movq	_sst25l_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movl	12(%r12), %edx
	sarl	$10, %eax
	movslq	%eax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	24(%rbx), %rsi
	movslq	12(%rbx), %rdx
	movl	%edx, %eax
	sarl	$20, %eax
	movslq	%eax, %rcx
	movl	(%rbx), %r8d
	movl	16(%rbx), %eax
	leal	1023(%r8), %r9d
	testl	%r8d, %r8d
	cmovnsl	%r8d, %r9d
	sarl	$10, %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_pr_debug
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_9:
	movq	%rbx, %rdi
	callq	_mtd_device_register
	testl	%eax, %eax
	je	LBB0_12
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MTD_NORFLASH,4,2               ## @MTD_NORFLASH
	.comm	_MTD_CAP_NORFLASH,4,2           ## @MTD_CAP_NORFLASH
	.comm	_sst25l_erase,4,2               ## @sst25l_erase
	.comm	_sst25l_read,4,2                ## @sst25l_read
	.comm	_sst25l_write,4,2               ## @sst25l_write
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s (%lld KiB)\n"

L_.str.1:                               ## @.str.1
	.asciz	"mtd .name = %s, .size = 0x%llx (%lldMiB) .erasesize = 0x%.8x (%uKiB) .numeraseregions = %d\n"

	.no_dead_strip	_sst25l_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sst25l_probe
_sst25l_probe:                          ; @sst25l_probe
	.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	x20, x0
	bl	_sst25l_match_device
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	str	x20, [x0, #72]
	add	x0, x0, #64
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x19
	bl	_spi_set_drvdata
	mov	x0, x20
	bl	_dev_get_platdata
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.4:
	str	x8, [x19, #24]
LBB0_5:
	str	x20, [x19, #56]
Lloh3:
	adrp	x8, _MTD_NORFLASH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTD_NORFLASH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh6:
	adrp	x8, _MTD_CAP_NORFLASH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MTD_CAP_NORFLASH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w10, [x22]
	stp	w9, w10, [x19]
	ldp	w9, w2, [x22, #8]
	mul	w9, w9, w10
	stp	w10, w9, [x19, #8]
Lloh9:
	adrp	x10, _sst25l_erase@GOTPAGE
Lloh10:
	ldr	x10, [x10, _sst25l_erase@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w8, [x19, #40]
Lloh12:
	adrp	x8, _sst25l_read@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sst25l_read@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _sst25l_write@GOTPAGE
Lloh16:
	ldr	x10, [x10, _sst25l_write@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	sbfx	x3, x9, #10, #22
	stp	w10, w8, [x19, #32]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x1, [x19, #24]
	ldp	w2, w6, [x19, #12]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	mov	x8, x2
	sbfx	x3, x8, #20, #12
	ldr	w4, [x19]
	add	w8, w4, #1023
	cmp	w4, #0
	csel	w8, w8, w4, lt
	asr	w5, w8, #10
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	cbz	x21, LBB0_8
; %bb.6:
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	b	LBB0_9
LBB0_7:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	mov	x1, #0
	mov	w2, #0
LBB0_9:
	mov	x0, x19
	bl	_mtd_device_register
	cbz	w0, LBB0_12
LBB0_10:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MTD_NORFLASH,4,2               ; @MTD_NORFLASH
	.comm	_MTD_CAP_NORFLASH,4,2           ; @MTD_CAP_NORFLASH
	.comm	_sst25l_erase,4,2               ; @sst25l_erase
	.comm	_sst25l_read,4,2                ; @sst25l_read
	.comm	_sst25l_write,4,2               ; @sst25l_write
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s (%lld KiB)\n"

l_.str.1:                               ; @.str.1
	.asciz	"mtd .name = %s, .size = 0x%llx (%lldMiB) .erasesize = 0x%.8x (%uKiB) .numeraseregions = %d\n"

	.no_dead_strip	_sst25l_probe
.subsections_via_symbols
