	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function at25_probe
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	4                               ## 0x4
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_at25_probe:                            ## @at25_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
LBB0_3:
	movl	-48(%rbp), %eax
	movq	_EE_ADDR1@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.4:
	movq	_EE_ADDR2@GOTPCREL(%rip), %rcx
	movl	$2, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_EE_ADDR3@GOTPCREL(%rip), %rcx
	movl	$3, %ebx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_7:
	movq	_AT25_RDSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_spi_w8r8
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	_AT25_SR_nRDY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%eax, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_1:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_at25_fw_to_chip
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_3
LBB0_10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$112, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r14
	leaq	104(%rax), %rdi
	callq	_mutex_init
	movaps	-48(%rbp), %xmm0
	movups	%xmm0, 4(%r14)
	movq	%r15, 96(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movl	%ebx, (%r14)
	movq	%r15, %rdi
	callq	_dev_name
	movq	%r14, %rsi
	addq	$24, %rsi
	movl	%eax, 88(%r14)
	movq	%r15, 80(%r14)
	movq	_EE_READONLY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	andl	-48(%rbp), %eax
	movl	%eax, 24(%r14)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r14)
	movq	%r15, 64(%r14)
	movq	_at25_ee_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r14)
	movq	_at25_ee_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	%r14, 48(%r14)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,4,1]
	movups	%xmm0, 28(%r14)
	movl	-44(%rbp), %eax
	movl	%eax, 44(%r14)
	movq	%r15, %rdi
	callq	_devm_nvmem_register
	movl	%eax, 20(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	20(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_14:
	movl	-44(%rbp), %eax
	leal	1023(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$10, %edx
	cmpl	$1024, %eax                     ## imm = 0x400
	cmovll	%eax, %edx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmovlq	%rax, %rcx
	movl	12(%r14), %eax
	movl	16(%r14), %r8d
	movl	(%rbx), %esi
	andl	-48(%rbp), %esi
	leaq	L_.str.6(%rip), %rsi
	leaq	L_.str.5(%rip), %r9
	cmoveq	%rsi, %r9
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EE_ADDR1,4,2                   ## @EE_ADDR1
	.comm	_EE_ADDR2,4,2                   ## @EE_ADDR2
	.comm	_EE_ADDR3,4,2                   ## @EE_ADDR3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported address type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AT25_RDSR,4,2                  ## @AT25_RDSR
	.comm	_AT25_SR_nRDY,4,2               ## @AT25_SR_nRDY
L_.str.1:                               ## @.str.1
	.asciz	"rdsr --> %d (%02x)\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EE_READONLY,4,2                ## @EE_READONLY
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_at25_ee_read,4,2               ## @at25_ee_read
	.comm	_at25_ee_write,4,2              ## @at25_ee_write
L_.str.2:                               ## @.str.2
	.asciz	"%d %s %s eeprom%s, pagesize %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"Byte"

L_.str.4:                               ## @.str.4
	.asciz	"KByte"

L_.str.5:                               ## @.str.5
	.asciz	" (readonly)"

L_.str.6:                               ## @.str.6
	.space	1

	.no_dead_strip	_at25_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function at25_probe
lCPI0_0:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_at25_probe:                            ; @at25_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	q0, [x8]
	str	q0, [sp, #16]
LBB0_2:
	ldr	w8, [sp, #16]
Lloh0:
	adrp	x9, _EE_ADDR1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EE_ADDR1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	w21, #1
	b	LBB0_9
LBB0_4:
	add	x1, sp, #16
	mov	x0, x19
	bl	_at25_fw_to_chip
	cbnz	w0, LBB0_13
	b	LBB0_2
LBB0_5:
Lloh3:
	adrp	x9, _EE_ADDR2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EE_ADDR2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w21, #2
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x9, _EE_ADDR3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EE_ADDR3@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.8:
	mov	w21, #3
LBB0_9:
Lloh9:
	adrp	x8, _AT25_RDSR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AT25_RDSR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_spi_w8r8
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_11
; %bb.10:
Lloh12:
	adrp	x8, _AT25_SR_nRDY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AT25_SR_nRDY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
LBB0_11:
	stp	x0, x0, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh17:
	adrp	x8, _ENXIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
Lloh19:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #112
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.15:
	mov	x20, x0
	add	x0, x0, #104
	bl	_mutex_init
	ldr	q0, [sp, #16]
	stur	q0, [x20, #4]
	str	x19, [x20, #96]
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	str	w21, [x20]
	mov	x0, x19
	bl	_dev_name
Lloh22:
	adrp	x21, _EE_READONLY@GOTPAGE
Lloh23:
	ldr	x21, [x21, _EE_READONLY@GOTPAGEOFF]
	ldr	w8, [x21]
	ldp	w9, w10, [sp, #16]
	and	w8, w8, w9
	mov	x1, x20
	str	w8, [x1, #24]!
Lloh24:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
	str	w0, [x20, #88]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #72]
Lloh27:
	adrp	x8, _at25_ee_read@GOTPAGE
Lloh28:
	ldr	x8, [x8, _at25_ee_read@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _at25_ee_write@GOTPAGE
Lloh31:
	ldr	x9, [x9, _at25_ee_write@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #56]
Lloh33:
	adrp	x8, lCPI0_0@PAGE
Lloh34:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	x19, [x20, #80]
	str	x19, [x20, #64]
	str	x20, [x20, #48]
	stur	q0, [x20, #28]
	str	w10, [x20, #44]
	mov	x0, x19
	bl	_devm_nvmem_register
	str	w0, [x20, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.16:
	ldr	w0, [x20, #20]
	bl	_PTR_ERR
	b	LBB0_13
LBB0_17:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_18:
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_19:
	ldp	w9, w8, [sp, #16]
	add	w10, w8, #1023
	cmp	w8, #0
	csel	w10, w10, w8, lt
	asr	w10, w10, #10
	cmp	w8, #1024
	csel	w2, w8, w10, lt
Lloh41:
	adrp	x8, l_.str.4@PAGE
Lloh42:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh43:
	adrp	x10, l_.str.3@PAGE
Lloh44:
	add	x10, x10, l_.str.3@PAGEOFF
	csel	x3, x10, x8, lt
	ldr	w8, [x21]
Lloh45:
	adrp	x10, l_.str.5@PAGE
Lloh46:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh47:
	adrp	x11, l_.str.6@PAGE
Lloh48:
	add	x11, x11, l_.str.6@PAGEOFF
	tst	w8, w9
	csel	x5, x11, x10, eq
	ldp	w6, w4, [x20, #12]
Lloh49:
	adrp	x1, l_.str.2@PAGE
Lloh50:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdr	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_EE_ADDR1,4,2                   ; @EE_ADDR1
	.comm	_EE_ADDR2,4,2                   ; @EE_ADDR2
	.comm	_EE_ADDR3,4,2                   ; @EE_ADDR3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported address type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AT25_RDSR,4,2                  ; @AT25_RDSR
	.comm	_AT25_SR_nRDY,4,2               ; @AT25_SR_nRDY
l_.str.1:                               ; @.str.1
	.asciz	"rdsr --> %d (%02x)\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EE_READONLY,4,2                ; @EE_READONLY
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_at25_ee_read,4,2               ; @at25_ee_read
	.comm	_at25_ee_write,4,2              ; @at25_ee_write
l_.str.2:                               ; @.str.2
	.asciz	"%d %s %s eeprom%s, pagesize %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"Byte"

l_.str.4:                               ; @.str.4
	.asciz	"KByte"

l_.str.5:                               ; @.str.5
	.asciz	" (readonly)"

l_.str.6:                               ; @.str.6
	.space	1

	.no_dead_strip	_at25_probe
.subsections_via_symbols
