	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xonar_set_hdmi_params          ## -- Begin function xonar_set_hdmi_params
	.p2align	4, 0x90
_xonar_set_hdmi_params:                 ## @xonar_set_hdmi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movl	$0, (%rax)
	movq	%rdx, %rdi
	callq	_params_rate
	cmpl	$44100, %eax                    ## imm = 0xAC44
	je	LBB0_1
## %bb.2:
	cmpl	$192000, %eax                   ## imm = 0x2EE00
	je	LBB0_6
## %bb.3:
	cmpl	$48000, %eax                    ## imm = 0xBB80
	jne	LBB0_5
## %bb.4:
	movq	_IEC958_AES3_CON_FS_48000@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_IEC958_AES3_CON_FS_44100@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_IEC958_AES3_CON_FS_192000@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_IEC958_AES3_CON_FS_96000@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	%r15, %rdi
	callq	_params_channels
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	decl	%ecx
	movq	(%rbx), %rax
	movl	%ecx, 8(%rax)
	movq	%r15, %rdi
	callq	_params_format
	movq	_SNDRV_PCM_FORMAT_S16_LE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movq	(%rbx), %rcx
	movl	$192, %eax
	cmovel	%edx, %eax
	movl	%eax, 12(%rcx)
	movl	$1, 16(%rcx)
	movq	%r14, %rdi
	movl	$84, %esi
	movl	$5, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hdmi_write_command             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEC958_AES3_CON_FS_44100,4,2   ## @IEC958_AES3_CON_FS_44100
	.comm	_IEC958_AES3_CON_FS_48000,4,2   ## @IEC958_AES3_CON_FS_48000
	.comm	_IEC958_AES3_CON_FS_96000,4,2   ## @IEC958_AES3_CON_FS_96000
	.comm	_IEC958_AES3_CON_FS_192000,4,2  ## @IEC958_AES3_CON_FS_192000
	.comm	_SNDRV_PCM_FORMAT_S16_LE,8,3    ## @SNDRV_PCM_FORMAT_S16_LE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xonar_set_hdmi_params          ; -- Begin function xonar_set_hdmi_params
	.p2align	2
_xonar_set_hdmi_params:                 ; @xonar_set_hdmi_params
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x1]
	str	wzr, [x8]
	mov	x0, x2
	bl	_params_rate
Lloh0:
	adrp	x8, _IEC958_AES3_CON_FS_44100@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEC958_AES3_CON_FS_44100@GOTPAGEOFF]
	mov	w9, #44100
Lloh2:
	adrp	x10, _IEC958_AES3_CON_FS_192000@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IEC958_AES3_CON_FS_192000@GOTPAGEOFF]
	mov	w11, #48000
Lloh4:
	adrp	x12, _IEC958_AES3_CON_FS_96000@GOTPAGE
Lloh5:
	ldr	x12, [x12, _IEC958_AES3_CON_FS_96000@GOTPAGEOFF]
	cmp	w0, w11
Lloh6:
	adrp	x11, _IEC958_AES3_CON_FS_48000@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IEC958_AES3_CON_FS_48000@GOTPAGEOFF]
	csel	x11, x12, x11, ne
	sub	w12, w0, #46, lsl #12           ; =188416
	cmp	w12, #3584
	csel	x10, x10, x11, eq
	cmp	w0, w9
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, #4]
	mov	x0, x19
	bl	_params_channels
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	sub	w8, w8, #1
	ldr	x9, [x20]
	str	w8, [x9, #8]
	mov	x0, x19
	bl	_params_format
Lloh8:
	adrp	x8, _SNDRV_PCM_FORMAT_S16_LE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SNDRV_PCM_FORMAT_S16_LE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x3, [x20]
	cmp	x0, x8
	mov	w8, #192
	csel	w8, wzr, w8, eq
	mov	w9, #1
	stp	w8, w9, [x3, #12]
	mov	x0, x21
	mov	w1, #84
	mov	w2, #5
	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
	b	_hdmi_write_command
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEC958_AES3_CON_FS_44100,4,2   ; @IEC958_AES3_CON_FS_44100
	.comm	_IEC958_AES3_CON_FS_48000,4,2   ; @IEC958_AES3_CON_FS_48000
	.comm	_IEC958_AES3_CON_FS_96000,4,2   ; @IEC958_AES3_CON_FS_96000
	.comm	_IEC958_AES3_CON_FS_192000,4,2  ; @IEC958_AES3_CON_FS_192000
	.comm	_SNDRV_PCM_FORMAT_S16_LE,8,3    ; @SNDRV_PCM_FORMAT_S16_LE
.subsections_via_symbols
