	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max5821_sync_powerdown_mode
_max5821_sync_powerdown_mode:           ## @max5821_sync_powerdown_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_MAX5821_EXTENDED_COMMAND_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	(%rsi), %rcx
	movq	_MAX5821_EXTENDED_DAC_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX5821_EXTENDED_DAC_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rdi), %rsi
	cmpq	$0, (%rsi,%rcx,8)
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %rsi
	movl	(%rsi,%rcx,4), %esi
	incl	%esi
	jmp	LBB0_3
LBB0_2:
	movq	_MAX5821_EXTENDED_POWER_UP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_3:
	testq	%rcx, %rcx
	cmovel	%edx, %eax
	orl	%esi, %eax
	movl	%eax, -12(%rbp)
	movl	8(%rdi), %edi
	leaq	-16(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_master_send
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX5821_EXTENDED_COMMAND_MODE,4,2 ## @MAX5821_EXTENDED_COMMAND_MODE
	.comm	_MAX5821_EXTENDED_DAC_A,4,2     ## @MAX5821_EXTENDED_DAC_A
	.comm	_MAX5821_EXTENDED_DAC_B,4,2     ## @MAX5821_EXTENDED_DAC_B
	.comm	_MAX5821_EXTENDED_POWER_UP,4,2  ## @MAX5821_EXTENDED_POWER_UP
	.no_dead_strip	_max5821_sync_powerdown_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max5821_sync_powerdown_mode
_max5821_sync_powerdown_mode:           ; @max5821_sync_powerdown_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _MAX5821_EXTENDED_COMMAND_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX5821_EXTENDED_COMMAND_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x8, [x1]
Lloh6:
	adrp	x9, _MAX5821_EXTENDED_DAC_A@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX5821_EXTENDED_DAC_A@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MAX5821_EXTENDED_DAC_B@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX5821_EXTENDED_DAC_B@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	ldr	x11, [x0, #16]
	ldr	x11, [x11, x8, lsl #3]
	cbz	x11, LBB0_2
; %bb.1:
	ldr	x11, [x0]
	ldr	w11, [x11, x8, lsl #2]
	add	w11, w11, #1
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x11, _MAX5821_EXTENDED_POWER_UP@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MAX5821_EXTENDED_POWER_UP@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
LBB0_3:
	cmp	x8, #0
	csel	w8, w9, w10, eq
	orr	w8, w8, w11
	str	w8, [sp, #4]
	ldr	w0, [x0, #8]
	mov	x1, sp
	mov	w2, #2
	bl	_i2c_master_send
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX5821_EXTENDED_COMMAND_MODE,4,2 ; @MAX5821_EXTENDED_COMMAND_MODE
	.comm	_MAX5821_EXTENDED_DAC_A,4,2     ; @MAX5821_EXTENDED_DAC_A
	.comm	_MAX5821_EXTENDED_DAC_B,4,2     ; @MAX5821_EXTENDED_DAC_B
	.comm	_MAX5821_EXTENDED_POWER_UP,4,2  ; @MAX5821_EXTENDED_POWER_UP
	.no_dead_strip	_max5821_sync_powerdown_mode
.subsections_via_symbols
