	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_set_trigger_state
_zpa2326_set_trigger_state:             ## @zpa2326_set_trigger_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.5:
	cmpq	$0, 16(%r15)
	je	LBB0_7
## %bb.6:
	movl	8(%r15), %edi
	movq	_ZPA2326_CTRL_REG1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ZPA2326_CTRL_REG1_MASK_DATA_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_7:
	movl	8(%r15), %edi
	movq	_ZPA2326_CTRL_REG3_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ZPA2326_CTRL_REG3_ENABLE_MEAS@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	(%r15), %rax
	movl	4(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_zpa2326_dbg
	jmp	LBB0_9
LBB0_1:
	movl	24(%r15), %edi
	callq	_disable_irq
	movl	8(%r15), %r12d
	movq	_ZPA2326_CTRL_REG3_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_zpa2326_highest_frequency
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movl	8(%r15), %edi
	movq	_ZPA2326_INT_SOURCE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	24(%r15), %edi
	callq	_enable_irq
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_zpa2326_dbg
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPA2326_CTRL_REG3_REG,4,2      ## @ZPA2326_CTRL_REG3_REG
	.comm	_ZPA2326_INT_SOURCE_REG,4,2     ## @ZPA2326_INT_SOURCE_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"continuous mode stopped"

	.comm	_ZPA2326_CTRL_REG1_REG,4,2      ## @ZPA2326_CTRL_REG1_REG
	.comm	_ZPA2326_CTRL_REG1_MASK_DATA_READY,8,3 ## @ZPA2326_CTRL_REG1_MASK_DATA_READY
	.comm	_ZPA2326_CTRL_REG3_ENABLE_MEAS,4,2 ## @ZPA2326_CTRL_REG3_ENABLE_MEAS
L_.str.1:                               ## @.str.1
	.asciz	"continuous mode setup @%dHz"

	.no_dead_strip	_zpa2326_set_trigger_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_set_trigger_state
_zpa2326_set_trigger_state:             ; @zpa2326_set_trigger_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	cbz	w21, LBB0_5
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ZPA2326_CTRL_REG1_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPA2326_CTRL_REG1_REG@GOTPAGEOFF]
	ldr	w0, [x20, #8]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ZPA2326_CTRL_REG1_MASK_DATA_READY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZPA2326_CTRL_REG1_MASK_DATA_READY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mvn	w2, w8
	bl	_regmap_write
	cbnz	w0, LBB0_9
LBB0_3:
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _ZPA2326_CTRL_REG3_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZPA2326_CTRL_REG3_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ZPA2326_CTRL_REG3_ENABLE_MEAS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZPA2326_CTRL_REG3_ENABLE_MEAS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
	ldr	w0, [x20, #24]
	bl	_disable_irq
	ldr	w21, [x20, #8]
Lloh14:
	adrp	x8, _ZPA2326_CTRL_REG3_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZPA2326_CTRL_REG3_REG@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	bl	_zpa2326_highest_frequency
	ldr	w2, [x0]
	mov	x0, x21
	mov	x1, x22
	bl	_regmap_write
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w0, [x20, #8]
Lloh17:
	adrp	x8, _ZPA2326_INT_SOURCE_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ZPA2326_INT_SOURCE_REG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w0, [x20, #24]
	bl	_enable_irq
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_zpa2326_dbg
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPA2326_CTRL_REG3_REG,4,2      ; @ZPA2326_CTRL_REG3_REG
	.comm	_ZPA2326_INT_SOURCE_REG,4,2     ; @ZPA2326_INT_SOURCE_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"continuous mode stopped"

	.comm	_ZPA2326_CTRL_REG1_REG,4,2      ; @ZPA2326_CTRL_REG1_REG
	.comm	_ZPA2326_CTRL_REG1_MASK_DATA_READY,8,3 ; @ZPA2326_CTRL_REG1_MASK_DATA_READY
	.comm	_ZPA2326_CTRL_REG3_ENABLE_MEAS,4,2 ; @ZPA2326_CTRL_REG3_ENABLE_MEAS
l_.str.1:                               ; @.str.1
	.asciz	"continuous mode setup @%dHz"

	.no_dead_strip	_zpa2326_set_trigger_state
.subsections_via_symbols
