	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_spi_probe
_arizona_spi_probe:                     ## @arizona_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_spi_get_device_id
	leaq	8(%r13), %r14
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_arizona_of_get_type
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_2:
	movq	(%rax), %r15
LBB0_3:
	leaq	-128(%r15), %rax
	cmpq	$2, %rax
	jb	LBB0_8
## %bb.4:
	leaq	-131(%r15), %rax
	cmpq	$2, %rax
	jae	LBB0_5
## %bb.12:
	movq	_CONFIG_MFD_CS47L24@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:
	movq	_cs47l24_spi_regmap@GOTPCREL(%rip), %r12
	jmp	LBB0_14
LBB0_8:
	movq	_CONFIG_MFD_WM5110@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_20
## %bb.9:
	movq	_wm5110_spi_regmap@GOTPCREL(%rip), %r12
	jmp	LBB0_14
LBB0_5:
	cmpq	$130, %r15
	jne	LBB0_10
## %bb.6:
	movq	_CONFIG_MFD_WM5102@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_20
## %bb.7:
	movq	_wm5102_spi_regmap@GOTPCREL(%rip), %r12
LBB0_14:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.17:
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_devm_regmap_init_spi
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movl	24(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_19
LBB0_20:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%r15, (%rbx)
	movq	%r14, 16(%rbx)
	movl	(%r13), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_arizona_dev_init               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_MFD_WM5102,4,2          ## @CONFIG_MFD_WM5102
	.comm	_wm5102_spi_regmap,4,2          ## @wm5102_spi_regmap
	.comm	_CONFIG_MFD_WM5110,4,2          ## @CONFIG_MFD_WM5110
	.comm	_wm5110_spi_regmap,4,2          ## @wm5110_spi_regmap
	.comm	_CONFIG_MFD_CS47L24,4,2         ## @CONFIG_MFD_CS47L24
	.comm	_cs47l24_spi_regmap,4,2         ## @cs47l24_spi_regmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown device type %ld\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"No kernel support for device type %ld\n"

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

	.no_dead_strip	_arizona_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_spi_probe
_arizona_spi_probe:                     ; @arizona_spi_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_spi_get_device_id
	mov	x19, x20
	ldr	x8, [x19, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_arizona_of_get_type
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	ldr	x21, [x0]
LBB0_3:
	sub	x8, x21, #128
	cmp	x8, #2
	b.lo	LBB0_7
; %bb.4:
	sub	x8, x21, #131
	cmp	x8, #2
	b.hs	LBB0_9
; %bb.5:
Lloh0:
	adrp	x8, _CONFIG_MFD_CS47L24@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_MFD_CS47L24@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_15
; %bb.6:
Lloh3:
	adrp	x22, _cs47l24_spi_regmap@GOTPAGE
Lloh4:
	ldr	x22, [x22, _cs47l24_spi_regmap@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh5:
	adrp	x8, _CONFIG_MFD_WM5110@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONFIG_MFD_WM5110@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_15
; %bb.8:
Lloh8:
	adrp	x22, _wm5110_spi_regmap@GOTPAGE
Lloh9:
	ldr	x22, [x22, _wm5110_spi_regmap@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	cmp	x21, #130
	b.ne	LBB0_17
; %bb.10:
Lloh10:
	adrp	x8, _CONFIG_MFD_WM5102@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CONFIG_MFD_WM5102@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_15
; %bb.11:
Lloh13:
	adrp	x22, _wm5102_spi_regmap@GOTPAGE
Lloh14:
	ldr	x22, [x22, _wm5102_spi_regmap@GOTPAGEOFF]
LBB0_12:
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_16
; %bb.13:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_devm_regmap_init_spi
	str	w0, [x23, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.14:
	ldr	w0, [x23, #24]
	bl	_PTR_ERR
	mov	x20, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_20
LBB0_15:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
LBB0_18:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	str	x21, [x23]
	str	x19, [x23, #16]
	ldr	w8, [x20]
	str	w8, [x23, #8]
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_arizona_dev_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_MFD_WM5102,4,2          ; @CONFIG_MFD_WM5102
	.comm	_wm5102_spi_regmap,4,2          ; @wm5102_spi_regmap
	.comm	_CONFIG_MFD_WM5110,4,2          ; @CONFIG_MFD_WM5110
	.comm	_wm5110_spi_regmap,4,2          ; @wm5110_spi_regmap
	.comm	_CONFIG_MFD_CS47L24,4,2         ; @CONFIG_MFD_CS47L24
	.comm	_cs47l24_spi_regmap,4,2         ; @cs47l24_spi_regmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown device type %ld\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"No kernel support for device type %ld\n"

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

	.no_dead_strip	_arizona_spi_probe
.subsections_via_symbols
