	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1836_register
_ad1836_register:                       ## @ad1836_register
	.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, %rbx
	movq	_ad1836_codec@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_2:
	leaq	8(%rbx), %r14
	leaq	80(%rbx), %rdi
	callq	_mutex_init
	leaq	36(%rbx), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, 72(%rbx)
	movl	(%rbx), %eax
	movl	%eax, 64(%rbx)
	movq	_AD1836_NUM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_ad1836_dai@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movl	$1, 16(%rbx)
	movq	_ad1836_write_reg@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_ad1836_read_reg_cache@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movl	20(%rbx), %eax
	movq	_ad1836_dai@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%r14, (%r13)
	movq	_AD1836_DAC_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$768, %edx                      ## imm = 0x300
	callq	*24(%rbx)
	movq	_AD1836_DAC_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	*24(%rbx)
	movq	_AD1836_ADC_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	*24(%rbx)
	movq	_AD1836_ADC_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	*24(%rbx)
	movq	_AD1836_ADC_CTRL3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$58, %edx
	callq	*24(%rbx)
	movq	_AD1836_DAC_L1_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	*24(%rbx)
	movq	_AD1836_DAC_R1_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	*24(%rbx)
	movq	_AD1836_DAC_L2_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	*24(%rbx)
	movq	_AD1836_DAC_R2_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	*24(%rbx)
	movq	_AD1836_DAC_L3_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	*24(%rbx)
	movq	_AD1836_DAC_R3_VOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	*24(%rbx)
	movq	%r14, %rdi
	callq	_snd_soc_register_codec
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movl	20(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_4:
	movq	_ad1836_dai@GOTPCREL(%rip), %rdi
	callq	_snd_soc_register_dai
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r12d
	movl	20(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	callq	_snd_soc_unregister_codec
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r12d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ad1836_codec,8,3               ## @ad1836_codec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Another ad1836 is registered\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD1836_NUM_REGS,4,2            ## @AD1836_NUM_REGS
L_.str.1:                               ## @.str.1
	.asciz	"AD1836"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ad1836_dai,4,2                 ## @ad1836_dai
	.comm	_ad1836_read_reg_cache,4,2      ## @ad1836_read_reg_cache
	.comm	_AD1836_DAC_CTRL1,4,2           ## @AD1836_DAC_CTRL1
	.comm	_AD1836_DAC_CTRL2,4,2           ## @AD1836_DAC_CTRL2
	.comm	_AD1836_ADC_CTRL1,4,2           ## @AD1836_ADC_CTRL1
	.comm	_AD1836_ADC_CTRL2,4,2           ## @AD1836_ADC_CTRL2
	.comm	_AD1836_ADC_CTRL3,4,2           ## @AD1836_ADC_CTRL3
	.comm	_AD1836_DAC_L1_VOL,4,2          ## @AD1836_DAC_L1_VOL
	.comm	_AD1836_DAC_R1_VOL,4,2          ## @AD1836_DAC_R1_VOL
	.comm	_AD1836_DAC_L2_VOL,4,2          ## @AD1836_DAC_L2_VOL
	.comm	_AD1836_DAC_R2_VOL,4,2          ## @AD1836_DAC_R2_VOL
	.comm	_AD1836_DAC_L3_VOL,4,2          ## @AD1836_DAC_L3_VOL
	.comm	_AD1836_DAC_R3_VOL,4,2          ## @AD1836_DAC_R3_VOL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register codec: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to register DAI: %d\n"

	.no_dead_strip	_ad1836_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1836_register
_ad1836_register:                       ; @ad1836_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x23, _ad1836_codec@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ad1836_codec@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	add	x20, x19, #8
	add	x0, x19, #80
	bl	_mutex_init
	add	x21, x19, #36
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	add	x22, x19, #32
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	str	x19, [x19, #72]
	ldr	w8, [x19]
	str	w8, [x19, #64]
Lloh7:
	adrp	x8, _AD1836_NUM_REGS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AD1836_NUM_REGS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, l_.str.1@PAGE
Lloh11:
	add	x9, x9, l_.str.1@PAGEOFF
	str	x9, [x19, #8]
Lloh12:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
Lloh15:
	adrp	x24, _ad1836_dai@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ad1836_dai@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x19, #16]
Lloh17:
	adrp	x8, _ad1836_write_reg@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ad1836_write_reg@GOTPAGEOFF]
	str	x24, [x19, #48]
	str	x8, [x19, #24]
Lloh19:
	adrp	x8, _ad1836_read_reg_cache@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ad1836_read_reg_cache@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	ldr	w8, [x19, #20]
	str	w8, [x24]
	str	x20, [x23]
	ldr	x8, [x19, #24]
Lloh22:
	adrp	x9, _AD1836_DAC_CTRL1@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AD1836_DAC_CTRL1@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #768
	blr	x8
	ldr	x8, [x19, #24]
Lloh25:
	adrp	x9, _AD1836_DAC_CTRL2@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AD1836_DAC_CTRL2@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #0
	blr	x8
	ldr	x8, [x19, #24]
Lloh28:
	adrp	x9, _AD1836_ADC_CTRL1@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AD1836_ADC_CTRL1@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #256
	blr	x8
	ldr	x8, [x19, #24]
Lloh31:
	adrp	x9, _AD1836_ADC_CTRL2@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AD1836_ADC_CTRL2@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #384
	blr	x8
	ldr	x8, [x19, #24]
Lloh34:
	adrp	x9, _AD1836_ADC_CTRL3@GOTPAGE
Lloh35:
	ldr	x9, [x9, _AD1836_ADC_CTRL3@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #58
	blr	x8
	ldr	x8, [x19, #24]
Lloh37:
	adrp	x9, _AD1836_DAC_L1_VOL@GOTPAGE
Lloh38:
	ldr	x9, [x9, _AD1836_DAC_L1_VOL@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #1023
	blr	x8
	ldr	x8, [x19, #24]
Lloh40:
	adrp	x9, _AD1836_DAC_R1_VOL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AD1836_DAC_R1_VOL@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #1023
	blr	x8
	ldr	x8, [x19, #24]
Lloh43:
	adrp	x9, _AD1836_DAC_L2_VOL@GOTPAGE
Lloh44:
	ldr	x9, [x9, _AD1836_DAC_L2_VOL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #1023
	blr	x8
	ldr	x8, [x19, #24]
Lloh46:
	adrp	x9, _AD1836_DAC_R2_VOL@GOTPAGE
Lloh47:
	ldr	x9, [x9, _AD1836_DAC_R2_VOL@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #1023
	blr	x8
	ldr	x8, [x19, #24]
Lloh49:
	adrp	x9, _AD1836_DAC_L3_VOL@GOTPAGE
Lloh50:
	ldr	x9, [x9, _AD1836_DAC_L3_VOL@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #1023
	blr	x8
	ldr	x8, [x19, #24]
Lloh52:
	adrp	x9, _AD1836_DAC_R3_VOL@GOTPAGE
Lloh53:
	ldr	x9, [x9, _AD1836_DAC_R3_VOL@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x9]
	mov	x0, x20
	mov	w2, #1023
	blr	x8
	mov	x0, x20
	bl	_snd_soc_register_codec
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w0, [x19, #20]
	str	x21, [sp]
Lloh55:
	adrp	x1, l_.str.2@PAGE
Lloh56:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_kfree
	b	LBB0_6
LBB0_4:
Lloh57:
	adrp	x0, _ad1836_dai@GOTPAGE
Lloh58:
	ldr	x0, [x0, _ad1836_dai@GOTPAGEOFF]
	bl	_snd_soc_register_dai
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #20]
	str	x21, [sp]
Lloh59:
	adrp	x1, l_.str.3@PAGE
Lloh60:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_snd_soc_unregister_codec
	mov	x0, x19
	bl	_kfree
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_6:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_ad1836_codec,8,3               ; @ad1836_codec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Another ad1836 is registered\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD1836_NUM_REGS,4,2            ; @AD1836_NUM_REGS
l_.str.1:                               ; @.str.1
	.asciz	"AD1836"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ad1836_dai,4,2                 ; @ad1836_dai
	.comm	_ad1836_read_reg_cache,4,2      ; @ad1836_read_reg_cache
	.comm	_AD1836_DAC_CTRL1,4,2           ; @AD1836_DAC_CTRL1
	.comm	_AD1836_DAC_CTRL2,4,2           ; @AD1836_DAC_CTRL2
	.comm	_AD1836_ADC_CTRL1,4,2           ; @AD1836_ADC_CTRL1
	.comm	_AD1836_ADC_CTRL2,4,2           ; @AD1836_ADC_CTRL2
	.comm	_AD1836_ADC_CTRL3,4,2           ; @AD1836_ADC_CTRL3
	.comm	_AD1836_DAC_L1_VOL,4,2          ; @AD1836_DAC_L1_VOL
	.comm	_AD1836_DAC_R1_VOL,4,2          ; @AD1836_DAC_R1_VOL
	.comm	_AD1836_DAC_L2_VOL,4,2          ; @AD1836_DAC_L2_VOL
	.comm	_AD1836_DAC_R2_VOL,4,2          ; @AD1836_DAC_R2_VOL
	.comm	_AD1836_DAC_L3_VOL,4,2          ; @AD1836_DAC_L3_VOL
	.comm	_AD1836_DAC_R3_VOL,4,2          ; @AD1836_DAC_R3_VOL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register codec: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to register DAI: %d\n"

	.no_dead_strip	_ad1836_register
.subsections_via_symbols
