	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rme9652_set_sync_mode
_rme9652_set_sync_mode:                 ## @rme9652_set_sync_mode
	.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
	cmpl	$2, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$1, %esi
	je	LBB0_4
## %bb.2:
	testl	%esi, %esi
	jne	LBB0_6
## %bb.3:
	movq	_RME9652_Master@GOTPCREL(%rip), %rax
	movq	_RME9652_wsel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	cmpl	$0, 4(%rbx)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movq	_RME9652_Master@GOTPCREL(%rip), %rax
	movq	_RME9652_wsel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
LBB0_6:
	cmpl	$0, 4(%rbx)
	je	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_rme9652_stop
	movq	_RME9652_control_register@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_rme9652_write
	movq	%rbx, %rdi
	callq	_rme9652_start
	jmp	LBB0_9
LBB0_4:
	movq	_RME9652_wsel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rbx), %eax
	movq	_RME9652_Master@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	cmpl	$0, 4(%rbx)
	jne	LBB0_7
LBB0_8:
	movq	_RME9652_control_register@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_rme9652_write
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RME9652_Master,4,2             ## @RME9652_Master
	.comm	_RME9652_wsel,4,2               ## @RME9652_wsel
	.comm	_RME9652_control_register,4,2   ## @RME9652_control_register
	.no_dead_strip	_rme9652_set_sync_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rme9652_set_sync_mode
_rme9652_set_sync_mode:                 ; @rme9652_set_sync_mode
	.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
	cmp	w1, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w1, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _RME9652_Master@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RME9652_Master@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RME9652_wsel@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RME9652_wsel@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _RME9652_Master@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RME9652_Master@GOTPAGEOFF]
Lloh8:
	adrp	x9, _RME9652_wsel@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RME9652_wsel@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _RME9652_wsel@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RME9652_wsel@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh15:
	adrp	x9, _RME9652_Master@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RME9652_Master@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
LBB0_6:
	orr	w8, w8, w9
LBB0_7:
	str	w8, [x19]
LBB0_8:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_rme9652_stop
Lloh18:
	adrp	x8, _RME9652_control_register@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RME9652_control_register@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_rme9652_write
	mov	x0, x19
	bl	_rme9652_start
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _RME9652_control_register@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RME9652_control_register@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_rme9652_write
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_RME9652_Master,4,2             ; @RME9652_Master
	.comm	_RME9652_wsel,4,2               ; @RME9652_wsel
	.comm	_RME9652_control_register,4,2   ; @RME9652_control_register
	.no_dead_strip	_rme9652_set_sync_mode
.subsections_via_symbols
