	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loopback_enable
_loopback_enable:                       ## @loopback_enable
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CHA@GOTPCREL(%rip), %r14
	movq	_CCR1@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	callq	_read_reg
	movq	_BIT2@GOTPCREL(%rip), %rcx
	movq	_BIT1@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	addb	(%rcx), %dl
	movq	_BIT0@GOTPCREL(%rip), %r15
	addb	(%r15), %dl
	orb	%al, %dl
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movzbl	%dl, %edx
	movq	%rbx, %rdi
	callq	_write_reg
	movq	_CCR2@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_read_reg
	movq	_BIT4@GOTPCREL(%rip), %rcx
	movq	_BIT5@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	addb	(%rcx), %dl
	orb	%al, %dl
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movzbl	%dl, %edx
	movq	%rbx, %rdi
	callq	_write_reg
	movl	(%rbx), %eax
	testl	%eax, %eax
	movq	(%r14), %rsi
	movl	$1843200, %edx                  ## imm = 0x1C2000
	cmovnel	%eax, %edx
	movq	%rbx, %rdi
	callq	_mgslpc_set_rate
	movq	_MODE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_read_reg
	orb	(%r15), %al
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_reg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHA,8,3                        ## @CHA
	.comm	_CCR1,8,3                       ## @CCR1
	.comm	_BIT2,1,0                       ## @BIT2
	.comm	_BIT1,1,0                       ## @BIT1
	.comm	_BIT0,1,0                       ## @BIT0
	.comm	_CCR2,8,3                       ## @CCR2
	.comm	_BIT4,1,0                       ## @BIT4
	.comm	_BIT5,1,0                       ## @BIT5
	.comm	_MODE,8,3                       ## @MODE
	.no_dead_strip	_loopback_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loopback_enable
_loopback_enable:                       ; @loopback_enable
	.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, x0
Lloh0:
	adrp	x20, _CHA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CHA@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x22, _CCR1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CCR1@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_read_reg
Lloh4:
	adrp	x8, _BIT2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BIT2@GOTPAGEOFF]
Lloh6:
	adrp	x9, _BIT1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BIT1@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldrb	w9, [x9]
Lloh8:
	adrp	x21, _BIT0@GOTPAGE
Lloh9:
	ldr	x21, [x21, _BIT0@GOTPAGEOFF]
	ldrb	w10, [x21]
	add	w8, w9, w8
	add	w8, w8, w10
	orr	w8, w8, w0
	ldr	x9, [x20]
	ldr	x10, [x22]
	add	x1, x10, x9
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_write_reg
	ldr	x8, [x20]
Lloh10:
	adrp	x22, _CCR2@GOTPAGE
Lloh11:
	ldr	x22, [x22, _CCR2@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_read_reg
Lloh12:
	adrp	x8, _BIT4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BIT4@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh14:
	adrp	x9, _BIT5@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BIT5@GOTPAGEOFF]
	ldrb	w9, [x9]
	add	w8, w9, w8
	orr	w8, w8, w0
	ldr	x9, [x20]
	ldr	x10, [x22]
	add	x1, x10, x9
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_write_reg
	ldr	w8, [x19]
	ldr	x1, [x20]
	mov	w9, #8192
	movk	w9, #28, lsl #16
	cmp	w8, #0
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_mgslpc_set_rate
	ldr	x8, [x20]
Lloh16:
	adrp	x22, _MODE@GOTPAGE
Lloh17:
	ldr	x22, [x22, _MODE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_read_reg
	ldrb	w8, [x21]
	orr	w2, w8, w0
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	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	_write_reg
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CHA,8,3                        ; @CHA
	.comm	_CCR1,8,3                       ; @CCR1
	.comm	_BIT2,1,0                       ; @BIT2
	.comm	_BIT1,1,0                       ; @BIT1
	.comm	_BIT0,1,0                       ; @BIT0
	.comm	_CCR2,8,3                       ; @CCR2
	.comm	_BIT4,1,0                       ; @BIT4
	.comm	_BIT5,1,0                       ; @BIT5
	.comm	_MODE,8,3                       ; @MODE
	.no_dead_strip	_loopback_enable
.subsections_via_symbols
