	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aic26_spi_probe
_aic26_spi_probe:                       ## @aic26_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, %r14
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$104, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 96(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r12, 80(%r12)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movq	_aic26_dai@GOTPCREL(%rip), %rbx
	movq	%rbx, 64(%r12)
	movl	$1, 16(%r12)
	movq	_aic26_reg_read@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	_aic26_reg_write@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r12)
	movl	$1, (%r12)
	leaq	48(%r12), %rdi
	callq	_mutex_init
	leaq	44(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	40(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	_AIC26_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movl	88(%r12), %eax
	movl	%eax, 32(%r12)
	movq	%r14, (%rbx)
	movq	%rbx, %rdi
	callq	_snd_soc_register_dai
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	%r12, %r15
	addq	$8, %r15
	movq	_AIC26_REG_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$47872, %edx                    ## imm = 0xBB00
	callq	_aic26_reg_write
	movq	_AIC26_REG_POWER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_aic26_reg_write
	movq	_AIC26_REG_AUDIO_CTRL3@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_aic26_reg_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$-63489, %eax                   ## imm = 0xFFFF07FF
	leal	2048(%rax), %edx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_aic26_reg_write
	movl	88(%r12), %edi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_aic26_reg_read
	incl	%ebx
	movl	88(%r12), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jl	LBB0_5
LBB0_6:
	movq	_dev_attr_keyclick@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probing tlv320aic26 spi device\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"aic26"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_aic26_dai,8,3                  ## @aic26_dai
	.comm	_AIC26_NUM_REGS,4,2             ## @AIC26_NUM_REGS
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register DAI: %d\n"

	.comm	_AIC26_REG_RESET,4,2            ## @AIC26_REG_RESET
	.comm	_AIC26_REG_POWER_CTRL,4,2       ## @AIC26_REG_POWER_CTRL
	.comm	_AIC26_REG_AUDIO_CTRL3,4,2      ## @AIC26_REG_AUDIO_CTRL3
	.comm	_dev_attr_keyclick,4,2          ## @dev_attr_keyclick
L_.str.3:                               ## @.str.3
	.asciz	"error creating sysfs files\n"

L_.str.4:                               ## @.str.4
	.asciz	"SPI device initialized\n"

	.comm	_aic26_soc_codec_dev,4,2        ## @aic26_soc_codec_dev
	.no_dead_strip	_aic26_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aic26_spi_probe
_aic26_spi_probe:                       ; @aic26_spi_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	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #104
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #96]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x21, x20
	str	x8, [x21, #8]!
	str	x20, [x20, #80]
Lloh7:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x22, _aic26_dai@GOTPAGE
Lloh11:
	ldr	x22, [x22, _aic26_dai@GOTPAGEOFF]
	str	w8, [x20, #72]
	mov	w8, #1
	str	w8, [x20, #16]
Lloh12:
	adrp	x9, _aic26_reg_read@GOTPAGE
Lloh13:
	ldr	x9, [x9, _aic26_reg_read@GOTPAGEOFF]
	str	x9, [x20, #24]
Lloh14:
	adrp	x9, _aic26_reg_write@GOTPAGE
Lloh15:
	ldr	x9, [x9, _aic26_reg_write@GOTPAGEOFF]
	stp	x9, x22, [x20, #56]
	str	w8, [x20]
	add	x0, x20, #48
	bl	_mutex_init
	add	x0, x20, #44
	bl	_INIT_LIST_HEAD
	add	x0, x20, #40
	bl	_INIT_LIST_HEAD
Lloh16:
	adrp	x8, _AIC26_NUM_REGS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AIC26_NUM_REGS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x20, #88]
	stp	w9, w8, [x20, #32]
	str	x19, [x22]
	mov	x0, x22
	bl	_snd_soc_register_dai
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	mov	x0, x20
	bl	_kfree
	b	LBB0_10
LBB0_3:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_4:
Lloh24:
	adrp	x8, _AIC26_REG_RESET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AIC26_REG_RESET@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #47872
	bl	_aic26_reg_write
Lloh27:
	adrp	x8, _AIC26_REG_POWER_CTRL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AIC26_REG_POWER_CTRL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_aic26_reg_write
Lloh30:
	adrp	x22, _AIC26_REG_AUDIO_CTRL3@GOTPAGE
Lloh31:
	ldr	x22, [x22, _AIC26_REG_AUDIO_CTRL3@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_aic26_reg_read
	and	w8, w0, #0xffff07ff
	orr	w2, w8, #0x800
	ldr	w1, [x22]
	mov	x0, x21
	bl	_aic26_reg_write
	ldr	w0, [x20, #88]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_aic26_reg_read
	add	w22, w22, #1
	ldr	w0, [x20, #88]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.lt	LBB0_6
LBB0_7:
Lloh32:
	adrp	x1, _dev_attr_keyclick@GOTPAGE
Lloh33:
	ldr	x1, [x1, _dev_attr_keyclick@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	w0, LBB0_9
; %bb.8:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_9:
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probing tlv320aic26 spi device\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"aic26"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_aic26_dai,8,3                  ; @aic26_dai
	.comm	_AIC26_NUM_REGS,4,2             ; @AIC26_NUM_REGS
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register DAI: %d\n"

	.comm	_AIC26_REG_RESET,4,2            ; @AIC26_REG_RESET
	.comm	_AIC26_REG_POWER_CTRL,4,2       ; @AIC26_REG_POWER_CTRL
	.comm	_AIC26_REG_AUDIO_CTRL3,4,2      ; @AIC26_REG_AUDIO_CTRL3
	.comm	_dev_attr_keyclick,4,2          ; @dev_attr_keyclick
l_.str.3:                               ; @.str.3
	.asciz	"error creating sysfs files\n"

l_.str.4:                               ; @.str.4
	.asciz	"SPI device initialized\n"

	.comm	_aic26_soc_codec_dev,4,2        ; @aic26_soc_codec_dev
	.no_dead_strip	_aic26_spi_probe
.subsections_via_symbols
