	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function picolcd_led_set_brightness
_picolcd_led_set_brightness:            ## @picolcd_led_set_brightness
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_to_hid_device
	movq	%rax, %rdi
	callq	_hid_get_drvdata
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	8(%rax), %rcx
	cmpq	%rbx, (%rcx)
	je	LBB0_2
## %bb.10:
	cmpq	%rbx, 8(%rcx)
	je	LBB0_11
## %bb.12:
	cmpq	%rbx, 16(%rcx)
	je	LBB0_13
## %bb.14:
	cmpq	%rbx, 24(%rcx)
	je	LBB0_15
## %bb.16:
	cmpq	%rbx, 32(%rcx)
	je	LBB0_17
## %bb.18:
	cmpq	%rbx, 40(%rcx)
	je	LBB0_19
## %bb.20:
	cmpq	%rbx, 48(%rcx)
	je	LBB0_21
## %bb.22:
	cmpq	%rbx, 56(%rcx)
	jne	LBB0_24
## %bb.23:
	movl	$7, %ecx
	jmp	LBB0_3
LBB0_2:
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_11:
	movl	$1, %ecx
	jmp	LBB0_3
LBB0_13:
	movl	$2, %ecx
	jmp	LBB0_3
LBB0_15:
	movl	$3, %ecx
	jmp	LBB0_3
LBB0_17:
	movl	$4, %ecx
	jmp	LBB0_3
LBB0_19:
	movl	$5, %ecx
	jmp	LBB0_3
LBB0_21:
	movl	$6, %ecx
LBB0_3:
	movl	(%rax), %edx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movq	_LED_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edx, %ecx
	andl	%esi, %ecx
	cmpl	%r14d, %edi
	jne	LBB0_6
## %bb.4:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	notl	%esi
	andl	%esi, %edx
	jmp	LBB0_9
LBB0_6:
	cmpl	%r14d, %edi
	je	LBB0_24
## %bb.7:
	testl	%ecx, %ecx
	jne	LBB0_24
## %bb.8:
	orl	%esi, %edx
LBB0_9:
	movl	%edx, (%rax)
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_picolcd_leds_set               ## TAILCALL
LBB0_24:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.no_dead_strip	_picolcd_led_set_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function picolcd_led_set_brightness
_picolcd_led_set_brightness:            ; @picolcd_led_set_brightness
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_to_hid_device
	bl	_hid_get_drvdata
	cbz	x0, LBB0_19
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	cmp	x9, x20
	b.eq	LBB0_10
; %bb.2:
	ldr	x9, [x8, #8]
	cmp	x9, x20
	b.eq	LBB0_11
; %bb.3:
	ldr	x9, [x8, #16]
	cmp	x9, x20
	b.eq	LBB0_12
; %bb.4:
	ldr	x9, [x8, #24]
	cmp	x9, x20
	b.eq	LBB0_13
; %bb.5:
	ldr	x9, [x8, #32]
	cmp	x9, x20
	b.eq	LBB0_14
; %bb.6:
	ldr	x9, [x8, #40]
	cmp	x9, x20
	b.eq	LBB0_15
; %bb.7:
	ldr	x9, [x8, #48]
	cmp	x9, x20
	b.eq	LBB0_16
; %bb.8:
	ldr	x8, [x8, #56]
	cmp	x8, x20
	b.ne	LBB0_19
; %bb.9:
	mov	w8, #7
	b	LBB0_17
LBB0_10:
	mov	w8, #0
	b	LBB0_17
LBB0_11:
	mov	w8, #1
	b	LBB0_17
LBB0_12:
	mov	w8, #2
	b	LBB0_17
LBB0_13:
	mov	w8, #3
	b	LBB0_17
LBB0_14:
	mov	w8, #4
	b	LBB0_17
LBB0_15:
	mov	w8, #5
	b	LBB0_17
LBB0_16:
	mov	w8, #6
LBB0_17:
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _LED_OFF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LED_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w8, w11, w8
	and	w11, w9, w8
	cmp	w10, w19
	ccmp	w11, #0, #4, eq
	b.ne	LBB0_20
; %bb.18:
	cmp	w10, w19
	ccmp	w11, #0, #0, ne
	b.eq	LBB0_21
LBB0_19:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_20:
	bic	w8, w9, w8
	b	LBB0_22
LBB0_21:
	orr	w8, w9, w8
LBB0_22:
	str	w8, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_picolcd_leds_set
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.no_dead_strip	_picolcd_led_set_brightness
.subsections_via_symbols
