	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aic3x_register
_aic3x_register:                        ## @aic3x_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_aic3x_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_aic3x_codec@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	%rbx, %rdi
	callq	_snd_soc_register_codec
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_4:
	movq	_aic3x_dai@GOTPCREL(%rip), %rdi
	callq	_snd_soc_register_dai
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_snd_soc_unregister_codec
	jmp	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialise device\n"

	.comm	_aic3x_codec,8,3                ## @aic3x_codec
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register codec\n"

	.comm	_aic3x_dai,4,2                  ## @aic3x_dai
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register dai\n"

	.no_dead_strip	_aic3x_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aic3x_register
_aic3x_register:                        ; @aic3x_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_aic3x_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _aic3x_codec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aic3x_codec@GOTPAGEOFF]
Lloh2:
	str	x20, [x8]
	mov	x0, x20
	bl	_snd_soc_register_codec
	cbz	w0, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_3:
	mov	x19, x0
	ldr	w0, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x0, _aic3x_dai@GOTPAGE
Lloh8:
	ldr	x0, [x0, _aic3x_dai@GOTPAGEOFF]
	bl	_snd_soc_register_dai
	mov	x19, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_snd_soc_unregister_codec
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialise device\n"

	.comm	_aic3x_codec,8,3                ; @aic3x_codec
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register codec\n"

	.comm	_aic3x_dai,4,2                  ; @aic3x_dai
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register dai\n"

	.no_dead_strip	_aic3x_register
.subsections_via_symbols
