	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_leds_set               ## -- Begin function picolcd_leds_set
	.p2align	4, 0x90
_picolcd_leds_set:                      ## @picolcd_leds_set
	.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	16(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_REPORT_LED_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_picolcd_out_report
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	cmpl	$1, (%rax)
	jne	LBB0_7
## %bb.3:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_7
## %bb.4:
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	movl	12(%rbx), %edx
	xorl	%esi, %esi
	callq	_hid_set_field
	movq	_PICOLCD_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_6
## %bb.5:
	movl	8(%rbx), %edi
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_hid_hw_request
LBB0_6:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REPORT_LED_STATE,4,2           ## @REPORT_LED_STATE
	.comm	_PICOLCD_FAILED,4,2             ## @PICOLCD_FAILED
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_leds_set               ; -- Begin function picolcd_leds_set
	.p2align	2
_picolcd_leds_set:                      ; @picolcd_leds_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _REPORT_LED_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REPORT_LED_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_picolcd_out_report
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.4:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	ldr	w2, [x19, #12]
	mov	w1, #0
	bl	_hid_set_field
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _PICOLCD_FAILED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PICOLCD_FAILED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_hid_hw_request
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REPORT_LED_STATE,4,2           ; @REPORT_LED_STATE
	.comm	_PICOLCD_FAILED,4,2             ; @PICOLCD_FAILED
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
.subsections_via_symbols
