	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_output
_show_output:                           ## @show_output
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_lm3533_dev_attr
	movl	8(%rax), %r12d
	movq	(%rax), %rax
	movq	_LM3533_ATTR_TYPE_BACKLIGHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	decl	%r12d
	movq	_LM3533_REG_OUTPUT_CONF1@GOTPCREL(%rip), %rax
	movq	_LM3533_BL_ID_MASK@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	cmpl	$4, %r12d
	jge	LBB0_3
## %bb.4:
	addl	%r12d, %r12d
	movq	_LM3533_REG_OUTPUT_CONF1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	addl	%r12d, %r12d
	addl	$-8, %r12d
	movq	_LM3533_REG_OUTPUT_CONF2@GOTPCREL(%rip), %rax
LBB0_5:
	movq	_LM3533_LED_ID_MASK@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ebx
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_lm3533_read
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	%r12d, %ecx
	shll	%cl, %ebx
	andl	-36(%rbp), %ebx
	sarl	%cl, %ebx
	movl	%ebx, -36(%rbp)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_scnprintf
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3533_ATTR_TYPE_BACKLIGHT,8,3 ## @LM3533_ATTR_TYPE_BACKLIGHT
	.comm	_LM3533_REG_OUTPUT_CONF1,4,2    ## @LM3533_REG_OUTPUT_CONF1
	.comm	_LM3533_BL_ID_MASK,4,2          ## @LM3533_BL_ID_MASK
	.comm	_LM3533_REG_OUTPUT_CONF2,4,2    ## @LM3533_REG_OUTPUT_CONF2
	.comm	_LM3533_LED_ID_MASK,4,2         ## @LM3533_LED_ID_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u\n"

	.no_dead_strip	_show_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_output
_show_output:                           ; @show_output
	.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	x20, x1
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x20
	bl	_to_lm3533_dev_attr
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _LM3533_ATTR_TYPE_BACKLIGHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LM3533_ATTR_TYPE_BACKLIGHT@GOTPAGEOFF]
	ldr	x10, [x0]
Lloh2:
	ldr	x9, [x9]
	lsl	w11, w8, #1
	sub	w12, w11, #8
Lloh3:
	adrp	x13, _LM3533_REG_OUTPUT_CONF2@GOTPAGE
Lloh4:
	ldr	x13, [x13, _LM3533_REG_OUTPUT_CONF2@GOTPAGEOFF]
Lloh5:
	adrp	x14, _LM3533_REG_OUTPUT_CONF1@GOTPAGE
Lloh6:
	ldr	x14, [x14, _LM3533_REG_OUTPUT_CONF1@GOTPAGEOFF]
	cmp	w8, #4
	csel	w11, w11, w12, lt
Lloh7:
	adrp	x12, _LM3533_LED_ID_MASK@GOTPAGE
Lloh8:
	ldr	x12, [x12, _LM3533_LED_ID_MASK@GOTPAGEOFF]
	csel	x13, x14, x13, lt
	sub	w8, w8, #1
Lloh9:
	adrp	x14, _LM3533_REG_OUTPUT_CONF1@GOTPAGE
Lloh10:
	ldr	x14, [x14, _LM3533_REG_OUTPUT_CONF1@GOTPAGEOFF]
Lloh11:
	adrp	x15, _LM3533_BL_ID_MASK@GOTPAGE
Lloh12:
	ldr	x15, [x15, _LM3533_BL_ID_MASK@GOTPAGEOFF]
	cmp	x10, x9
	csel	x9, x12, x15, ne
	csel	w20, w11, w8, ne
	csel	x8, x13, x14, ne
	ldr	w22, [x9]
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_lm3533_read
	cbnz	w0, LBB0_2
; %bb.1:
	lsl	w8, w22, w20
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	asr	w3, w8, w20
	str	w3, [sp, #12]
Lloh13:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_scnprintf
LBB0_2:
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3533_ATTR_TYPE_BACKLIGHT,8,3 ; @LM3533_ATTR_TYPE_BACKLIGHT
	.comm	_LM3533_REG_OUTPUT_CONF1,4,2    ; @LM3533_REG_OUTPUT_CONF1
	.comm	_LM3533_BL_ID_MASK,4,2          ; @LM3533_BL_ID_MASK
	.comm	_LM3533_REG_OUTPUT_CONF2,4,2    ; @LM3533_REG_OUTPUT_CONF2
	.comm	_LM3533_LED_ID_MASK,4,2         ; @LM3533_LED_ID_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u\n"

	.no_dead_strip	_show_output
.subsections_via_symbols
