	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads1015_disable_event_config
_ads1015_disable_event_config:          ## @ads1015_disable_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ads1015_event_channel_enabled
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_5
## %bb.2:
	movq	8(%rbx), %rcx
	movq	_ADS1015_CFG_COMP_MODE_TRAD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_ADS1015_CFG_COMP_MODE_WINDOW@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	je	LBB0_5
LBB0_4:
	movl	16(%rbx), %edi
	movq	_ADS1015_CFG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADS1015_CFG_COMP_QUE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADS1015_CFG_COMP_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ADS1015_CFG_COMP_QUE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_ads1015_event_channel_disable
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ads1015_set_power_state        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADS1015_CFG_COMP_MODE_TRAD,8,3 ## @ADS1015_CFG_COMP_MODE_TRAD
	.comm	_ADS1015_CFG_COMP_MODE_WINDOW,4,2 ## @ADS1015_CFG_COMP_MODE_WINDOW
	.comm	_ADS1015_CFG_REG,4,2            ## @ADS1015_CFG_REG
	.comm	_ADS1015_CFG_COMP_QUE_MASK,4,2  ## @ADS1015_CFG_COMP_QUE_MASK
	.comm	_ADS1015_CFG_COMP_DISABLE,4,2   ## @ADS1015_CFG_COMP_DISABLE
	.comm	_ADS1015_CFG_COMP_QUE_SHIFT,4,2 ## @ADS1015_CFG_COMP_QUE_SHIFT
	.no_dead_strip	_ads1015_disable_event_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ads1015_disable_event_config
_ads1015_disable_event_config:          ; @ads1015_disable_event_config
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_ads1015_event_channel_enabled
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _ADS1015_CFG_COMP_MODE_TRAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADS1015_CFG_COMP_MODE_TRAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ADS1015_CFG_COMP_MODE_WINDOW@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ADS1015_CFG_COMP_MODE_WINDOW@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, w21, #0, eq
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _ADS1015_CFG_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADS1015_CFG_REG@GOTPAGEOFF]
	ldr	w0, [x19, #16]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ADS1015_CFG_COMP_QUE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADS1015_CFG_COMP_QUE_MASK@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ADS1015_CFG_COMP_DISABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ADS1015_CFG_COMP_DISABLE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _ADS1015_CFG_COMP_QUE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ADS1015_CFG_COMP_QUE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	lsl	w3, w8, w9
	bl	_regmap_update_bits
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_ads1015_event_channel_disable
	mov	x0, x19
	mov	w1, #0
	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	_ads1015_set_power_state
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADS1015_CFG_COMP_MODE_TRAD,8,3 ; @ADS1015_CFG_COMP_MODE_TRAD
	.comm	_ADS1015_CFG_COMP_MODE_WINDOW,4,2 ; @ADS1015_CFG_COMP_MODE_WINDOW
	.comm	_ADS1015_CFG_REG,4,2            ; @ADS1015_CFG_REG
	.comm	_ADS1015_CFG_COMP_QUE_MASK,4,2  ; @ADS1015_CFG_COMP_QUE_MASK
	.comm	_ADS1015_CFG_COMP_DISABLE,4,2   ; @ADS1015_CFG_COMP_DISABLE
	.comm	_ADS1015_CFG_COMP_QUE_SHIFT,4,2 ; @ADS1015_CFG_COMP_QUE_SHIFT
	.no_dead_strip	_ads1015_disable_event_config
.subsections_via_symbols
