	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3533_als_get_hysteresis
_lm3533_als_get_hysteresis:             ## @lm3533_als_get_hysteresis
	.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	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_iio_priv
	movq	%rax, %r15
	movq	_LM3533_ALS_THRESH_MAX@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_lm3533_als_get_threshold
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_lm3533_als_get_threshold
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax
	subq	-56(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3533_ALS_THRESH_MAX,4,2      ## @LM3533_ALS_THRESH_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lm3533_als_get_hysteresis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3533_als_get_hysteresis
_lm3533_als_get_hysteresis:             ; @lm3533_als_get_hysteresis
	.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, x2
	mov	x21, x1
	mov	x22, x0
	bl	_iio_priv
Lloh0:
	adrp	x8, _LM3533_ALS_THRESH_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM3533_ALS_THRESH_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	bl	_mutex_lock
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	bl	_lm3533_als_get_threshold
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x3, sp
	mov	x0, x22
	mov	x1, x21
	mov	w2, #1
	bl	_lm3533_als_get_threshold
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldp	x8, x9, [sp]
	sub	x8, x8, x9
	str	x8, [x19]
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3533_ALS_THRESH_MAX,4,2      ; @LM3533_ALS_THRESH_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lm3533_als_get_hysteresis
.subsections_via_symbols
