	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_als_attr
_store_als_attr:                        ## @store_als_attr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %rbx
	callq	_dev_to_iio_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_lm3533_als_attr
	movq	%rax, %r12
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_kstrtou8
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r15d
	jmp	LBB0_10
LBB0_2:
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.5:
	movl	4(%r12), %esi
	movl	8(%r12), %edx
	movl	-44(%rbp), %ecx
	movq	%r14, %rdi
	callq	_lm3533_als_set_target
	jmp	LBB0_9
LBB0_7:
	movl	4(%r12), %esi
	movl	-44(%rbp), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_lm3533_als_set_threshold
	jmp	LBB0_9
LBB0_6:
	movl	4(%r12), %esi
	movl	-44(%rbp), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_lm3533_als_set_threshold
	jmp	LBB0_9
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	testl	%eax, %eax
	cmovnel	%eax, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_store_als_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_als_attr
_store_als_attr:                        ; @store_als_attr
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	bl	_dev_to_iio_dev
	mov	x20, x0
	mov	x0, x21
	bl	_to_lm3533_als_attr
	mov	x21, x0
	add	x2, sp, #12
	mov	x0, x22
	mov	w1, #0
	bl	_kstrtou8
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.5:
	ldp	w1, w2, [x21, #4]
	ldr	w3, [sp, #12]
	mov	x0, x20
	bl	_lm3533_als_set_target
	b	LBB0_9
LBB0_6:
	ldr	w1, [x21, #4]
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	w2, #1
	bl	_lm3533_als_set_threshold
	b	LBB0_9
LBB0_7:
	ldr	w1, [x21, #4]
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	w2, #0
	bl	_lm3533_als_set_threshold
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	cmp	w0, #0
	csel	w0, w19, w0, eq
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_store_als_attr
.subsections_via_symbols
