	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak4104_spi_probe
_ak4104_spi_probe:                      ## @ak4104_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
	movl	$8, (%rdi)
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	leaq	8(%rax), %r12
	leaq	72(%rax), %rdi
	callq	_mutex_init
	leaq	68(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	addq	$64, %rdi
	callq	_INIT_LIST_HEAD
	leaq	4(%r14), %r15
	movq	%r15, 56(%r13)
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r13)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_ak4104_dai@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r13)
	movl	$1, 8(%r13)
	movq	%r13, 32(%r13)
	movq	%r14, 24(%r13)
	movl	(%r13), %eax
	movl	%eax, 16(%r13)
	movq	_AK4104_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	%r12, %rdi
	callq	_ak4104_fill_cache
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_AK4104_REG_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ak4104_read_reg_cache
	movq	_AK4104_RESERVED_VAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	movq	_AK4104_REG_CONTROL1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_ak4104_read_reg_cache
	movq	_AK4104_CONTROL1_PW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_AK4104_CONTROL1_RSTN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ak4104_spi_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	_AK4104_REG_TX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_ak4104_read_reg_cache
	movq	_AK4104_TX_TXE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ak4104_spi_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.11:
	movq	_ak4104_codec@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	_ak4104_dai@GOTPCREL(%rip), %rdi
	callq	_snd_soc_register_dai
	testl	%eax, %eax
	js	LBB0_12
## %bb.15:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_spi_set_drvdata
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_3:
	addq	$4, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_13:
	movq	_ak4104_dai@GOTPCREL(%rip), %r14
	movq	%r13, %rdi
	callq	_kfree
	movq	$0, (%r14)
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_MODE_0,4,2                 ## @SPI_MODE_0
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate codec\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ak4104_dai,8,3                 ## @ak4104_dai
	.comm	_AK4104_NUM_REGS,4,2            ## @AK4104_NUM_REGS
L_.str.1:                               ## @.str.1
	.asciz	"failed to fill register cache\n"

	.comm	_AK4104_REG_RESERVED,4,2        ## @AK4104_REG_RESERVED
	.comm	_AK4104_RESERVED_VAL,4,2        ## @AK4104_RESERVED_VAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AK4104_REG_CONTROL1,4,2        ## @AK4104_REG_CONTROL1
	.comm	_AK4104_CONTROL1_PW,4,2         ## @AK4104_CONTROL1_PW
	.comm	_AK4104_CONTROL1_RSTN,4,2       ## @AK4104_CONTROL1_RSTN
	.comm	_AK4104_REG_TX,4,2              ## @AK4104_REG_TX
	.comm	_AK4104_TX_TXE,4,2              ## @AK4104_TX_TXE
	.comm	_ak4104_codec,8,3               ## @ak4104_codec
L_.str.2:                               ## @.str.2
	.asciz	"failed to register DAI\n"

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

	.no_dead_strip	_ak4104_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak4104_spi_probe
_ak4104_spi_probe:                      ; @ak4104_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
	mov	w8, #8
	str	w8, [x0]
Lloh0:
	adrp	x8, _SPI_MODE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_MODE_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	bl	_spi_setup
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	add	x0, x0, #72
	bl	_mutex_init
	add	x0, x19, #68
	bl	_INIT_LIST_HEAD
	add	x0, x19, #64
	bl	_INIT_LIST_HEAD
	mov	w8, #1
	mov	x22, x19
	str	w8, [x22, #8]!
	add	x21, x20, #4
Lloh6:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
	str	x21, [x19, #56]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh12:
	adrp	x24, _ak4104_dai@GOTPAGE
Lloh13:
	ldr	x24, [x24, _ak4104_dai@GOTPAGEOFF]
	stp	x19, x24, [x19, #32]
	str	x20, [x19, #24]
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _AK4104_NUM_REGS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AK4104_NUM_REGS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	mov	x0, x22
	bl	_ak4104_fill_cache
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh17:
	adrp	x8, _AK4104_REG_RESERVED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AK4104_REG_RESERVED@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ak4104_read_reg_cache
Lloh20:
	adrp	x8, _AK4104_RESERVED_VAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AK4104_RESERVED_VAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.4:
Lloh23:
	adrp	x23, _AK4104_REG_CONTROL1@GOTPAGE
Lloh24:
	ldr	x23, [x23, _AK4104_REG_CONTROL1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ak4104_read_reg_cache
Lloh25:
	adrp	x8, _AK4104_CONTROL1_PW@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AK4104_CONTROL1_PW@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _AK4104_CONTROL1_RSTN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AK4104_CONTROL1_RSTN@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ak4104_spi_write
	tbnz	w0, #31, LBB0_12
; %bb.5:
Lloh31:
	adrp	x23, _AK4104_REG_TX@GOTPAGE
Lloh32:
	ldr	x23, [x23, _AK4104_REG_TX@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ak4104_read_reg_cache
Lloh33:
	adrp	x8, _AK4104_TX_TXE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AK4104_TX_TXE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ak4104_spi_write
	tbnz	w0, #31, LBB0_12
; %bb.6:
Lloh36:
	adrp	x8, _ak4104_codec@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ak4104_codec@GOTPAGEOFF]
Lloh38:
	str	x22, [x8]
Lloh39:
	adrp	x0, _ak4104_dai@GOTPAGE
Lloh40:
	ldr	x0, [x0, _ak4104_dai@GOTPAGEOFF]
	bl	_snd_soc_register_dai
	tbnz	w0, #31, LBB0_13
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_spi_set_drvdata
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	mov	w23, #0
	b	LBB0_15
LBB0_8:
	mov	x23, x0
	b	LBB0_15
LBB0_9:
	add	x0, x20, #4
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_10:
	mov	x23, x0
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_15
LBB0_11:
Lloh50:
	adrp	x8, _ENODEV@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_12:
	mov	x23, x0
	b	LBB0_14
LBB0_13:
	mov	x23, x0
Lloh53:
	adrp	x1, l_.str.2@PAGE
Lloh54:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_14:
	mov	x0, x19
	bl	_kfree
	str	xzr, [x24]
LBB0_15:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_MODE_0,4,2                 ; @SPI_MODE_0
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate codec\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ak4104_dai,8,3                 ; @ak4104_dai
	.comm	_AK4104_NUM_REGS,4,2            ; @AK4104_NUM_REGS
l_.str.1:                               ; @.str.1
	.asciz	"failed to fill register cache\n"

	.comm	_AK4104_REG_RESERVED,4,2        ; @AK4104_REG_RESERVED
	.comm	_AK4104_RESERVED_VAL,4,2        ; @AK4104_RESERVED_VAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AK4104_REG_CONTROL1,4,2        ; @AK4104_REG_CONTROL1
	.comm	_AK4104_CONTROL1_PW,4,2         ; @AK4104_CONTROL1_PW
	.comm	_AK4104_CONTROL1_RSTN,4,2       ; @AK4104_CONTROL1_RSTN
	.comm	_AK4104_REG_TX,4,2              ; @AK4104_REG_TX
	.comm	_AK4104_TX_TXE,4,2              ; @AK4104_TX_TXE
	.comm	_ak4104_codec,8,3               ; @ak4104_codec
l_.str.2:                               ; @.str.2
	.asciz	"failed to register DAI\n"

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

	.no_dead_strip	_ak4104_spi_probe
.subsections_via_symbols
