	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_thresh_either_en
_store_thresh_either_en:                ## @store_thresh_either_en
	.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
	movq	%rcx, %r14
	movq	%rdx, %r12
	callq	_dev_to_iio_dev
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_iio_priv
	cmpl	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_LM3533_ALS_FLAG_INT_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	movl	%eax, %r12d
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.8:
	leaq	-52(%rbp), %rsi
	movq	%r13, %rdi
	callq	_lm3533_als_get_zone
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:
	movq	%r15, %rdi
	addq	$4, %rdi
	movl	-52(%rbp), %esi
	callq	_atomic_set
	movq	_LM3533_ALS_FLAG_INT_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	-48(%rbp), %rsi
LBB0_10:
	movq	%r13, %rdi
	callq	_lm3533_als_set_int_mode
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.12:
	movq	_LM3533_ALS_FLAG_INT_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	jmp	LBB0_5
LBB0_13:
	cmpq	$0, -48(%rbp)
	jne	LBB0_15
## %bb.14:
	movq	_LM3533_ALS_FLAG_INT_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_15:
	movl	%r14d, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LM3533_ALS_FLAG_INT_ENABLED,4,2 ## @LM3533_ALS_FLAG_INT_ENABLED
	.no_dead_strip	_store_thresh_either_en
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_thresh_either_en
_store_thresh_either_en:                ; @store_thresh_either_en
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x22, x2
	bl	_dev_to_iio_dev
	mov	x21, x0
	bl	_iio_priv
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #0
	bl	_kstrtoul
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh4:
	adrp	x24, _LM3533_ALS_FLAG_INT_ENABLED@GOTPAGE
Lloh5:
	ldr	x24, [x24, _LM3533_ALS_FLAG_INT_ENABLED@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x20
	bl	_test_bit
	mov	x22, x0
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_10
; %bb.7:
	cbnz	w22, LBB0_10
; %bb.8:
	add	x1, sp, #4
	mov	x0, x21
	bl	_lm3533_als_get_zone
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.9:
	add	x0, x20, #4
	ldr	w1, [sp, #4]
	bl	_atomic_set
	ldr	w0, [x24]
	mov	x1, x20
	bl	_set_bit
	ldr	x1, [sp, #8]
LBB0_10:
	mov	x0, x21
	bl	_lm3533_als_set_int_mode
	cbz	w0, LBB0_13
; %bb.11:
	mov	x23, x0
	cbnz	w22, LBB0_5
; %bb.12:
	ldr	w0, [x24]
	mov	x1, x20
	bl	_clear_bit
	b	LBB0_5
LBB0_13:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_15
; %bb.14:
	ldr	w0, [x24]
	mov	x1, x20
	bl	_clear_bit
LBB0_15:
	mov	x23, x19
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LM3533_ALS_FLAG_INT_ENABLED,4,2 ; @LM3533_ALS_FLAG_INT_ENABLED
	.no_dead_strip	_store_thresh_either_en
.subsections_via_symbols
