	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_audio_hw_params
_cdn_dp_audio_hw_params:                ## @cdn_dp_audio_hw_params
	.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	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movl	$0, -48(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -36(%rbp)
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpl	$0, 20(%r15)
	je	LBB0_1
## %bb.3:
	movl	(%r12), %edx
	cmpl	$129, %edx
	je	LBB0_4
## %bb.5:
	cmpl	$128, %edx
	jne	LBB0_10
## %bb.6:
	movq	_AFMT_SPDIF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_AFMT_I2S@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_cdn_dp_audio_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movups	-48(%rbp), %xmm0
	movups	%xmm0, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DRM_DEV_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AFMT_I2S,4,2                   ## @AFMT_I2S
	.comm	_AFMT_SPDIF,4,2                 ## @AFMT_SPDIF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid format %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cdn_dp_audio_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdn_dp_audio_hw_params
_cdn_dp_audio_hw_params:                ; @cdn_dp_audio_hw_params
	.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	x22, x3
	mov	x21, x2
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	str	wzr, [sp]
	ldr	d0, [x22]
	stur	d0, [sp, #4]
	ldr	w8, [x22, #8]
	str	w8, [sp, #12]
	bl	_mutex_lock
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w2, [x21]
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #128
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _AFMT_SPDIF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AFMT_SPDIF@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x8, _AFMT_I2S@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AFMT_I2S@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_cdn_dp_audio_config
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	q0, [sp]
	stur	q0, [x19, #4]
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_DRM_DEV_ERROR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AFMT_I2S,4,2                   ; @AFMT_I2S
	.comm	_AFMT_SPDIF,4,2                 ; @AFMT_SPDIF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid format %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cdn_dp_audio_hw_params
.subsections_via_symbols
