	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7768_set_dig_fil
_ad7768_set_dig_fil:                    ## @ad7768_set_dig_fil
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_AD7768_DEC_RATE_8@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_AD7768_DEC_RATE_16@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_2
## %bb.3:
	movl	%esi, %edi
	callq	_AD7768_DIG_FIL_DEC_RATE
	jmp	LBB0_4
LBB0_2:
	movl	%esi, %edi
	callq	_AD7768_DIG_FIL_FIL
LBB0_4:
	movl	%eax, %edx
	movq	_AD7768_REG_DIGITAL_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ad7768_spi_reg_write
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_gpiod_set_value
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7768_DEC_RATE_8,4,2          ## @AD7768_DEC_RATE_8
	.comm	_AD7768_DEC_RATE_16,4,2         ## @AD7768_DEC_RATE_16
	.comm	_AD7768_REG_DIGITAL_FILTER,4,2  ## @AD7768_REG_DIGITAL_FILTER
	.no_dead_strip	_ad7768_set_dig_fil
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7768_set_dig_fil
_ad7768_set_dig_fil:                    ; @ad7768_set_dig_fil
	.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, _AD7768_DEC_RATE_8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD7768_DEC_RATE_8@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AD7768_DEC_RATE_16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AD7768_DEC_RATE_16@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	mov	x0, x1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_2
; %bb.1:
	bl	_AD7768_DIG_FIL_FIL
	b	LBB0_3
LBB0_2:
	bl	_AD7768_DIG_FIL_DEC_RATE
LBB0_3:
	mov	x2, x0
Lloh6:
	adrp	x8, _AD7768_REG_DIGITAL_FILTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AD7768_REG_DIGITAL_FILTER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ad7768_spi_reg_write
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_gpiod_set_value
	ldr	w0, [x19]
	mov	w1, #0
	bl	_gpiod_set_value
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7768_DEC_RATE_8,4,2          ; @AD7768_DEC_RATE_8
	.comm	_AD7768_DEC_RATE_16,4,2         ; @AD7768_DEC_RATE_16
	.comm	_AD7768_REG_DIGITAL_FILTER,4,2  ; @AD7768_REG_DIGITAL_FILTER
	.no_dead_strip	_ad7768_set_dig_fil
.subsections_via_symbols
