	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_als_attr
_show_als_attr:                         ## @show_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_dev_to_iio_dev
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_lm3533_als_attr
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	4(%rax), %esi
	leaq	-28(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %edx
	jmp	LBB0_5
LBB0_3:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_4:
	movl	4(%rax), %esi
	leaq	-28(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
LBB0_5:
	callq	_lm3533_als_get_threshold
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_scnprintf
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%r15, %rdi
	callq	_lm3533_als_get_target
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_7:
	movl	4(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_lm3533_als_get_hysteresis
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u\n"

	.no_dead_strip	_show_als_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_als_attr
_show_als_attr:                         ; @show_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, x2
	mov	x21, x1
	bl	_dev_to_iio_dev
	mov	x20, x0
	mov	x0, x21
	bl	_to_lm3533_als_attr
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w1, [x0, #4]
	add	x3, sp, #12
	mov	x0, x20
	mov	w2, #1
	bl	_lm3533_als_get_threshold
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_4:
	ldr	w1, [x0, #4]
	add	x3, sp, #12
	mov	x0, x20
	mov	w2, #0
	bl	_lm3533_als_get_threshold
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_5:
	ldp	w1, w2, [x0, #4]
	add	x3, sp, #12
	mov	x0, x20
	bl	_lm3533_als_get_target
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_6:
	ldr	w1, [x0, #4]
	add	x2, sp, #12
	mov	x0, x20
	bl	_lm3533_als_get_hysteresis
	cbnz	w0, LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_scnprintf
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u\n"

	.no_dead_strip	_show_als_attr
.subsections_via_symbols
