	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rme9652_set_spdif_input
_rme9652_set_spdif_input:               ## @rme9652_set_spdif_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_RME9652_inp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rdi)
	movl	%esi, %edi
	callq	_rme9652_encode_spdif_in
	orl	4(%rbx), %eax
	movl	%eax, 4(%rbx)
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rme9652_stop
	movq	_RME9652_control_register@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_rme9652_write
	movq	%rbx, %rdi
	callq	_rme9652_start
	jmp	LBB0_3
LBB0_2:
	movq	_RME9652_control_register@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rme9652_write
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RME9652_inp,4,2                ## @RME9652_inp
	.comm	_RME9652_control_register,4,2   ## @RME9652_control_register
	.no_dead_strip	_rme9652_set_spdif_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rme9652_set_spdif_input
_rme9652_set_spdif_input:               ; @rme9652_set_spdif_input
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _RME9652_inp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RME9652_inp@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	bic	w8, w9, w8
	str	w8, [x0, #4]
	mov	x0, x1
	bl	_rme9652_encode_spdif_in
	ldp	w9, w8, [x19]
	orr	w2, w8, w0
	str	w2, [x19, #4]
	cbz	w9, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rme9652_stop
Lloh3:
	adrp	x8, _RME9652_control_register@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RME9652_control_register@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_rme9652_write
	mov	x0, x19
	bl	_rme9652_start
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _RME9652_control_register@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RME9652_control_register@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rme9652_write
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RME9652_inp,4,2                ; @RME9652_inp
	.comm	_RME9652_control_register,4,2   ; @RME9652_control_register
	.no_dead_strip	_rme9652_set_spdif_input
.subsections_via_symbols
