	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_snd_soc_register_platform   ## -- Begin function of_snd_soc_register_platform
	.p2align	4, 0x90
_of_snd_soc_register_platform:          ## @of_snd_soc_register_platform
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$7, -36(%rbp)
	jbe	LBB0_2
## %bb.3:
	movl	(%rax), %edi
	callq	_of_find_node_by_phandle
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r12
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	movq	_of_snd_soc_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_of_snd_soc_get_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, 24(%rax)
	movq	%r15, (%rax)
	movq	%r14, 16(%rax)
	movl	(%r15), %ecx
	movl	%ecx, 8(%rax)
	movq	%rax, %rdi
	callq	_of_snd_soc_register_device
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	_of_snd_soc_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	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 platform driver: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"codec-handle"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"looking for codec: %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_platform   ; -- Begin function of_snd_soc_register_platform
	.p2align	2
_of_snd_soc_register_platform:          ; @of_snd_soc_register_platform
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w1, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_get_property
	ldr	w8, [sp, #12]
	cmp	x0, #0
	ccmp	w8, #7, #0, ne
	b.ls	LBB0_4
; %bb.1:
	ldr	w0, [x0]
	bl	_of_find_node_by_phandle
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	w1, [x0]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
Lloh6:
	adrp	x0, _of_snd_soc_mutex@GOTPAGE
Lloh7:
	ldr	x0, [x0, _of_snd_soc_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x22
	bl	_of_snd_soc_get_device
	cbz	x0, LBB0_5
; %bb.3:
	str	x19, [x0]
	stp	x21, x20, [x0, #16]
	ldr	w8, [x19]
	str	w8, [x0, #8]
	bl	_of_snd_soc_register_device
	mov	w19, #0
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
Lloh14:
	adrp	x0, _of_snd_soc_mutex@GOTPAGE
Lloh15:
	ldr	x0, [x0, _of_snd_soc_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"registering ASoC platform driver: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"codec-handle"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"looking for codec: %s\n"

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