	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function madera_spi_probe
_madera_spi_probe:                      ## @madera_spi_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_spi_get_device_id
	movq	%rax, %rbx
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r13
	jmp	LBB0_3
LBB0_2:
	movq	(%rbx), %r13
LBB0_3:
	leaq	-128(%r13), %rax
	cmpq	$8, %rax
	ja	LBB0_19
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:
	movq	_CONFIG_MFD_CS47L92@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	movq	_cs47l92_16bit_spi_regmap@GOTPCREL(%rip), %r12
	movq	_cs47l92_32bit_spi_regmap@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_13:
	movq	_CONFIG_MFD_CS47L85@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_21
## %bb.14:
	movq	_cs47l85_16bit_spi_regmap@GOTPCREL(%rip), %r12
	movq	_cs47l85_32bit_spi_regmap@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_15:
	movq	_CONFIG_MFD_CS47L90@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_21
## %bb.16:
	movq	_cs47l90_16bit_spi_regmap@GOTPCREL(%rip), %r12
	movq	_cs47l90_32bit_spi_regmap@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_19:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r13, %rdx
	jmp	LBB0_20
LBB0_11:
	movq	_CONFIG_MFD_CS47L35@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_21
## %bb.12:
	movq	_cs47l35_16bit_spi_regmap@GOTPCREL(%rip), %r12
	movq	_cs47l35_32bit_spi_regmap@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_CONFIG_MFD_CS47L15@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_21
## %bb.6:
	movq	_cs47l15_16bit_spi_regmap@GOTPCREL(%rip), %r12
	movq	_cs47l15_32bit_spi_regmap@GOTPCREL(%rip), %rax
LBB0_7:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_madera_name_from_type
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.22:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_devm_regmap_init_spi
	movq	%rax, 40(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	movq	40(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_24
LBB0_21:
	movq	%r13, %rdi
	callq	_madera_name_from_type
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%rax, %rdx
LBB0_20:
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_25:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_devm_regmap_init_spi
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	32(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_24:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	%r13, (%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%r14, 24(%rbx)
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_madera_dev_init                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_CONFIG_MFD_CS47L15,4,2         ## @CONFIG_MFD_CS47L15
	.comm	_cs47l15_16bit_spi_regmap,4,2   ## @cs47l15_16bit_spi_regmap
	.comm	_cs47l15_32bit_spi_regmap,4,2   ## @cs47l15_32bit_spi_regmap
	.comm	_CONFIG_MFD_CS47L35,4,2         ## @CONFIG_MFD_CS47L35
	.comm	_cs47l35_16bit_spi_regmap,4,2   ## @cs47l35_16bit_spi_regmap
	.comm	_cs47l35_32bit_spi_regmap,4,2   ## @cs47l35_32bit_spi_regmap
	.comm	_CONFIG_MFD_CS47L85,4,2         ## @CONFIG_MFD_CS47L85
	.comm	_cs47l85_16bit_spi_regmap,4,2   ## @cs47l85_16bit_spi_regmap
	.comm	_cs47l85_32bit_spi_regmap,4,2   ## @cs47l85_32bit_spi_regmap
	.comm	_CONFIG_MFD_CS47L90,4,2         ## @CONFIG_MFD_CS47L90
	.comm	_cs47l90_16bit_spi_regmap,4,2   ## @cs47l90_16bit_spi_regmap
	.comm	_cs47l90_32bit_spi_regmap,4,2   ## @cs47l90_32bit_spi_regmap
	.comm	_CONFIG_MFD_CS47L92,4,2         ## @CONFIG_MFD_CS47L92
	.comm	_cs47l92_16bit_spi_regmap,4,2   ## @cs47l92_16bit_spi_regmap
	.comm	_cs47l92_32bit_spi_regmap,4,2   ## @cs47l92_32bit_spi_regmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown Madera SPI device type %ld\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Kernel does not include support for %s\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate 16-bit register map: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate 32-bit register map: %d\n"

	.no_dead_strip	_madera_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function madera_spi_probe
_madera_spi_probe:                      ; @madera_spi_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_spi_get_device_id
	mov	x22, x0
	add	x19, x20, #4
	mov	x0, x19
	bl	_of_device_get_match_data
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	ldr	x21, [x22]
LBB0_3:
	sub	x8, x21, #128
	cmp	x8, #8
	b.hi	LBB0_11
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh2:
	adrp	x8, _CONFIG_MFD_CS47L92@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONFIG_MFD_CS47L92@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_19
; %bb.6:
Lloh5:
	adrp	x23, _cs47l92_16bit_spi_regmap@GOTPAGE
Lloh6:
	ldr	x23, [x23, _cs47l92_16bit_spi_regmap@GOTPAGEOFF]
Lloh7:
	adrp	x22, _cs47l92_32bit_spi_regmap@GOTPAGE
Lloh8:
	ldr	x22, [x22, _cs47l92_32bit_spi_regmap@GOTPAGEOFF]
	b	LBB0_16
LBB0_7:
Lloh9:
	adrp	x8, _CONFIG_MFD_CS47L85@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONFIG_MFD_CS47L85@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_19
; %bb.8:
Lloh12:
	adrp	x23, _cs47l85_16bit_spi_regmap@GOTPAGE
Lloh13:
	ldr	x23, [x23, _cs47l85_16bit_spi_regmap@GOTPAGEOFF]
Lloh14:
	adrp	x22, _cs47l85_32bit_spi_regmap@GOTPAGE
Lloh15:
	ldr	x22, [x22, _cs47l85_32bit_spi_regmap@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
Lloh16:
	adrp	x8, _CONFIG_MFD_CS47L90@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CONFIG_MFD_CS47L90@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_19
; %bb.10:
Lloh19:
	adrp	x23, _cs47l90_16bit_spi_regmap@GOTPAGE
Lloh20:
	ldr	x23, [x23, _cs47l90_16bit_spi_regmap@GOTPAGEOFF]
Lloh21:
	adrp	x22, _cs47l90_32bit_spi_regmap@GOTPAGE
Lloh22:
	ldr	x22, [x22, _cs47l90_32bit_spi_regmap@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	str	x21, [sp]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_12:
Lloh25:
	adrp	x8, _CONFIG_MFD_CS47L35@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CONFIG_MFD_CS47L35@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_19
; %bb.13:
Lloh28:
	adrp	x23, _cs47l35_16bit_spi_regmap@GOTPAGE
Lloh29:
	ldr	x23, [x23, _cs47l35_16bit_spi_regmap@GOTPAGEOFF]
Lloh30:
	adrp	x22, _cs47l35_32bit_spi_regmap@GOTPAGE
Lloh31:
	ldr	x22, [x22, _cs47l35_32bit_spi_regmap@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh32:
	adrp	x8, _CONFIG_MFD_CS47L15@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CONFIG_MFD_CS47L15@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_19
; %bb.15:
Lloh35:
	adrp	x23, _cs47l15_16bit_spi_regmap@GOTPAGE
Lloh36:
	ldr	x23, [x23, _cs47l15_16bit_spi_regmap@GOTPAGEOFF]
Lloh37:
	adrp	x22, _cs47l15_32bit_spi_regmap@GOTPAGE
Lloh38:
	ldr	x22, [x22, _cs47l15_32bit_spi_regmap@GOTPAGEOFF]
LBB0_16:
	mov	x0, x21
	bl	_madera_name_from_type
	mov	x24, x0
Lloh39:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_21
; %bb.17:
	mov	x25, x0
	mov	x0, x20
	mov	x1, x23
	bl	_devm_regmap_init_spi
	str	x0, [x25, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_24
; %bb.18:
	ldr	x0, [x25, #40]
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_23
LBB0_19:
	mov	x0, x21
	bl	_madera_name_from_type
	str	x0, [sp]
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_dev_err
Lloh46:
	adrp	x8, _EINVAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_24:
	mov	x0, x20
	mov	x1, x22
	bl	_devm_regmap_init_spi
	str	x0, [x25, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x0, [x25, #32]
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_23
LBB0_26:
	stp	x21, x24, [x25]
	str	x19, [x25, #24]
	ldr	w8, [x20]
	str	w8, [x25, #16]
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_madera_dev_init
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
                                        ; -- End function
	.comm	_CONFIG_MFD_CS47L15,4,2         ; @CONFIG_MFD_CS47L15
	.comm	_cs47l15_16bit_spi_regmap,4,2   ; @cs47l15_16bit_spi_regmap
	.comm	_cs47l15_32bit_spi_regmap,4,2   ; @cs47l15_32bit_spi_regmap
	.comm	_CONFIG_MFD_CS47L35,4,2         ; @CONFIG_MFD_CS47L35
	.comm	_cs47l35_16bit_spi_regmap,4,2   ; @cs47l35_16bit_spi_regmap
	.comm	_cs47l35_32bit_spi_regmap,4,2   ; @cs47l35_32bit_spi_regmap
	.comm	_CONFIG_MFD_CS47L85,4,2         ; @CONFIG_MFD_CS47L85
	.comm	_cs47l85_16bit_spi_regmap,4,2   ; @cs47l85_16bit_spi_regmap
	.comm	_cs47l85_32bit_spi_regmap,4,2   ; @cs47l85_32bit_spi_regmap
	.comm	_CONFIG_MFD_CS47L90,4,2         ; @CONFIG_MFD_CS47L90
	.comm	_cs47l90_16bit_spi_regmap,4,2   ; @cs47l90_16bit_spi_regmap
	.comm	_cs47l90_32bit_spi_regmap,4,2   ; @cs47l90_32bit_spi_regmap
	.comm	_CONFIG_MFD_CS47L92,4,2         ; @CONFIG_MFD_CS47L92
	.comm	_cs47l92_16bit_spi_regmap,4,2   ; @cs47l92_16bit_spi_regmap
	.comm	_cs47l92_32bit_spi_regmap,4,2   ; @cs47l92_32bit_spi_regmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown Madera SPI device type %ld\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Kernel does not include support for %s\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate 16-bit register map: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate 32-bit register map: %d\n"

	.no_dead_strip	_madera_spi_probe
.subsections_via_symbols
