	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cirrus_set_state
_cirrus_set_state:                      ## @cirrus_set_state
	.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, %r12
	movq	_socket@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_PD67_MISC_CTL_2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_i365_get
	movl	%eax, %r14d
	movq	(%rbx), %rsi
	movq	%r12, %rbx
	shlq	$4, %rbx
	movl	(%r15,%rbx), %edx
	movq	%r12, %rdi
	callq	_i365_set
	movq	_PD67_MC2_SUSPEND@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$50, %edi
	callq	_mdelay
LBB0_2:
	movq	_PD67_MISC_CTL_1@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_i365_get
	movq	_PD67_MC1_MEDIA_ENA@GOTPCREL(%rip), %rcx
	movq	_PD67_MC1_INPACK_ENA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	(%r14), %rsi
	orl	4(%r15,%rbx), %edx
	movq	%r12, %rdi
	callq	_i365_set
	xorl	%edi, %edi
	callq	_PD67_TIME_SETUP
	movq	8(%r15,%rbx), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_i365_set
	xorl	%edi, %edi
	callq	_PD67_TIME_SETUP
	leaq	1(%rax), %rsi
	movq	8(%r15,%rbx), %rax
	movl	4(%rax), %edx
	movq	%r12, %rdi
	callq	_i365_set
	xorl	%edi, %edi
	callq	_PD67_TIME_SETUP
	leaq	2(%rax), %rsi
	movq	8(%r15,%rbx), %rax
	movl	8(%rax), %edx
	movq	%r12, %rdi
	callq	_i365_set
	xorl	%edi, %edi
	callq	_PD67_TIME_SETUP
	leaq	3(%rax), %rsi
	movq	8(%r15,%rbx), %rax
	movl	12(%rax), %edx
	movq	%r12, %rdi
	callq	_i365_set
	xorl	%edi, %edi
	callq	_PD67_TIME_SETUP
	leaq	4(%rax), %rsi
	movq	8(%r15,%rbx), %rax
	movl	16(%rax), %edx
	movq	%r12, %rdi
	callq	_i365_set
	xorl	%edi, %edi
	callq	_PD67_TIME_SETUP
	leaq	5(%rax), %rsi
	movq	8(%r15,%rbx), %rax
	movl	20(%rax), %edx
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i365_set                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_socket,8,3                     ## @socket
	.comm	_PD67_MISC_CTL_2,8,3            ## @PD67_MISC_CTL_2
	.comm	_PD67_MC2_SUSPEND,4,2           ## @PD67_MC2_SUSPEND
	.comm	_PD67_MISC_CTL_1,8,3            ## @PD67_MISC_CTL_1
	.comm	_PD67_MC1_MEDIA_ENA,4,2         ## @PD67_MC1_MEDIA_ENA
	.comm	_PD67_MC1_INPACK_ENA,4,2        ## @PD67_MC1_INPACK_ENA
	.no_dead_strip	_cirrus_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cirrus_set_state
_cirrus_set_state:                      ; @cirrus_set_state
	.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	x8, _socket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _socket@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x22, _PD67_MISC_CTL_2@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PD67_MISC_CTL_2@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_i365_get
	mov	x20, x0
	ldr	x1, [x22]
	lsl	x8, x19, #4
	ldr	w2, [x21, x8]
	mov	x0, x19
	bl	_i365_set
Lloh5:
	adrp	x8, _PD67_MC2_SUSPEND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PD67_MC2_SUSPEND@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #50
	bl	_mdelay
LBB0_2:
Lloh8:
	adrp	x20, _PD67_MISC_CTL_1@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PD67_MISC_CTL_1@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_i365_get
Lloh10:
	adrp	x8, _PD67_MC1_MEDIA_ENA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PD67_MC1_MEDIA_ENA@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PD67_MC1_INPACK_ENA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PD67_MC1_INPACK_ENA@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldr	x1, [x20]
	add	x20, x21, x19, lsl #4
	ldr	w9, [x20, #4]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_i365_set
	mov	w0, #0
	bl	_PD67_TIME_SETUP
	mov	x1, x0
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i365_set
	mov	w0, #0
	bl	_PD67_TIME_SETUP
	add	x1, x0, #1
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_i365_set
	mov	w0, #0
	bl	_PD67_TIME_SETUP
	add	x1, x0, #2
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_i365_set
	mov	w0, #0
	bl	_PD67_TIME_SETUP
	add	x1, x0, #3
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #12]
	mov	x0, x19
	bl	_i365_set
	mov	w0, #0
	bl	_PD67_TIME_SETUP
	add	x1, x0, #4
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #16]
	mov	x0, x19
	bl	_i365_set
	mov	w0, #0
	bl	_PD67_TIME_SETUP
	add	x1, x0, #5
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #20]
	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	_i365_set
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_socket,8,3                     ; @socket
	.comm	_PD67_MISC_CTL_2,8,3            ; @PD67_MISC_CTL_2
	.comm	_PD67_MC2_SUSPEND,4,2           ; @PD67_MC2_SUSPEND
	.comm	_PD67_MISC_CTL_1,8,3            ; @PD67_MISC_CTL_1
	.comm	_PD67_MC1_MEDIA_ENA,4,2         ; @PD67_MC1_MEDIA_ENA
	.comm	_PD67_MC1_INPACK_ENA,4,2        ; @PD67_MC1_INPACK_ENA
	.no_dead_strip	_cirrus_set_state
.subsections_via_symbols
