	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max1363_write_event_config
_max1363_write_event_config:            ## @max1363_write_event_config
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %r15
	movb	(%rbx), %r14b
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	(%r15), %eax
	movl	4(%r15), %edx
	movl	%edx, %esi
	movl	$1, %ebx
	movl	%r14d, %ecx
	shll	%cl, %ebx
	orl	%eax, %esi
	movq	_IIO_EV_DIR_FALLING@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_4
## %bb.1:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.2:
	movl	%ebx, %edi
	callq	___max1363_check_event_mask
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_11
## %bb.3:
	orl	(%r15), %ebx
	movl	%ebx, (%r15)
	movl	4(%r15), %edx
	movl	%ebx, %eax
	jmp	LBB0_10
LBB0_4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.5:
	movl	%ebx, %edi
	callq	___max1363_check_event_mask
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_11
## %bb.6:
	orl	4(%r15), %ebx
	movl	%ebx, 4(%r15)
	movl	(%r15), %eax
	movl	%ebx, %edx
	jmp	LBB0_10
LBB0_7:
	notl	%ebx
	andl	%ebx, %eax
	movl	%eax, (%r15)
	jmp	LBB0_9
LBB0_8:
	notl	%ebx
	andl	%ebx, %edx
	movl	%edx, 4(%r15)
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	xorl	%esi, %esi
	orl	%edx, %eax
	setne	%sil
	movq	%r15, %rdi
	callq	_max1363_monitor_mode_update
	xorl	%r12d, %r12d
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_EV_DIR_FALLING,4,2         ## @IIO_EV_DIR_FALLING
	.no_dead_strip	_max1363_write_event_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max1363_write_event_config
_max1363_write_event_config:            ; @max1363_write_event_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x23, x3
	mov	x21, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	w21, [x21]
	mov	x0, x19
	bl	_mutex_lock
	ldp	w8, w9, [x20]
	orr	w1, w9, w8
Lloh0:
	adrp	x10, _IIO_EV_DIR_FALLING@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IIO_EV_DIR_FALLING@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w21, w11, w21
	cmp	w10, w23
	b.ne	LBB0_4
; %bb.1:
	cbz	w22, LBB0_7
; %bb.2:
	mov	x0, x21
	bl	___max1363_check_event_mask
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.3:
	ldp	w8, w9, [x20]
	orr	w8, w8, w21
	str	w8, [x20]
	b	LBB0_10
LBB0_4:
	cbz	w22, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	___max1363_check_event_mask
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.6:
	ldp	w8, w9, [x20]
	orr	w9, w9, w21
	b	LBB0_9
LBB0_7:
	bic	w8, w8, w21
	str	w8, [x20]
	b	LBB0_10
LBB0_8:
	bic	w9, w9, w21
LBB0_9:
	str	w9, [x20, #4]
LBB0_10:
	orr	w8, w8, w9
	cmp	w8, #0
	cset	w1, ne
	mov	x0, x20
	bl	_max1363_monitor_mode_update
	mov	w22, #0
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_EV_DIR_FALLING,4,2         ; @IIO_EV_DIR_FALLING
	.no_dead_strip	_max1363_write_event_config
.subsections_via_symbols
