	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_soc_register_card
_snd_soc_register_card:                 ## @snd_soc_register_card
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	je	LBB0_2
## %bb.3:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, 16(%rbx)
	movq	_client_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_card_list@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_list_add
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_snd_soc_instantiate_cards
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_client_mutex,4,2               ## @client_mutex
	.comm	_card_list,4,2                  ## @card_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registered card '%s'\n"

	.no_dead_strip	_snd_soc_register_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_soc_register_card
_snd_soc_register_card:                 ; @snd_soc_register_card
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_3
; %bb.2:
	add	x20, x19, #8
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	str	xzr, [x19, #16]
Lloh0:
	adrp	x21, _client_mutex@GOTPAGE
Lloh1:
	ldr	x21, [x21, _client_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
Lloh2:
	adrp	x1, _card_list@GOTPAGE
Lloh3:
	ldr	x1, [x1, _card_list@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add
	bl	_snd_soc_instantiate_cards
	mov	x0, x21
	bl	_mutex_unlock
	ldp	w2, w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_client_mutex,4,2               ; @client_mutex
	.comm	_card_list,4,2                  ; @card_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registered card '%s'\n"

	.no_dead_strip	_snd_soc_register_card
.subsections_via_symbols
