	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_snd_soc_register_codec      ## -- Begin function of_snd_soc_register_codec
	.p2align	4, 0x90
_of_snd_soc_register_codec:             ## @of_snd_soc_register_codec
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	8(%rcx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_of_snd_soc_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_of_snd_soc_get_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, 32(%rax)
	movq	%r15, 24(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%rcx, 8(%rax)
	movq	%r14, 16(%rax)
	movq	%rax, %rdi
	callq	_of_snd_soc_register_device
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movq	_of_snd_soc_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"registering ASoC codec driver: %s\n"

	.comm	_of_snd_soc_mutex,4,2           ## @of_snd_soc_mutex
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_snd_soc_register_codec      ; -- Begin function of_snd_soc_register_codec
	.p2align	2
_of_snd_soc_register_codec:             ; @of_snd_soc_register_codec
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w1, [x3, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x0, _of_snd_soc_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _of_snd_soc_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x20
	bl	_of_snd_soc_get_device
	cbz	x0, LBB0_2
; %bb.1:
	str	x22, [x0, #32]
	ldr	x8, [x20]
	stp	x8, x8, [x0]
	stp	x19, x21, [x0, #16]
	bl	_of_snd_soc_register_device
	mov	w19, #0
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_3:
Lloh7:
	adrp	x0, _of_snd_soc_mutex@GOTPAGE
Lloh8:
	ldr	x0, [x0, _of_snd_soc_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"registering ASoC codec driver: %s\n"

	.comm	_of_snd_soc_mutex,4,2           ; @of_snd_soc_mutex
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
