	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_reset                  ## -- Begin function picolcd_reset
	.p2align	4, 0x90
_picolcd_reset:                         ## @picolcd_reset
	.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	%rdi, %r13
	callq	_hid_get_drvdata
	movq	%rax, %r14
	movq	_REPORT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_picolcd_out_report
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpl	$1, (%r15)
	jne	LBB0_7
## %bb.3:
	movq	%r14, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %rax
	movq	_USB_DEVICE_ID_PICOLCD_BOOTLOADER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_PICOLCD_BOOTLOADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_5:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_hid_set_field
	movq	_PICOLCD_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_hid_hw_request
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	callq	_picolcd_check_version
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	callq	_picolcd_resume_lcd
	movq	%r14, %rdi
	callq	_picolcd_resume_backlight
	movq	%r14, %rdi
	callq	_picolcd_fb_refresh
	movq	%r14, %rdi
	callq	_picolcd_leds_set
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_REPORT_RESET,4,2               ## @REPORT_RESET
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_USB_DEVICE_ID_PICOLCD_BOOTLOADER,8,3 ## @USB_DEVICE_ID_PICOLCD_BOOTLOADER
	.comm	_PICOLCD_BOOTLOADER,4,2         ## @PICOLCD_BOOTLOADER
	.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_reset                  ; -- Begin function picolcd_reset
	.p2align	2
_picolcd_reset:                         ; @picolcd_reset
	.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
	mov	x20, x0
	bl	_hid_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _REPORT_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REPORT_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_out_report
	cbz	x19, LBB0_7
; %bb.1:
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _USB_DEVICE_ID_PICOLCD_BOOTLOADER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_DEVICE_ID_PICOLCD_BOOTLOADER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _PICOLCD_BOOTLOADER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PICOLCD_BOOTLOADER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #1
	bl	_hid_set_field
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _PICOLCD_FAILED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PICOLCD_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_7:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
Lloh15:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_hid_hw_request
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_picolcd_check_version
	cbnz	w0, LBB0_8
; %bb.10:
	mov	x0, x19
	bl	_picolcd_resume_lcd
	mov	x0, x19
	bl	_picolcd_resume_backlight
	mov	x0, x19
	bl	_picolcd_fb_refresh
	mov	x0, x19
	bl	_picolcd_leds_set
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_REPORT_RESET,4,2               ; @REPORT_RESET
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_USB_DEVICE_ID_PICOLCD_BOOTLOADER,8,3 ; @USB_DEVICE_ID_PICOLCD_BOOTLOADER
	.comm	_PICOLCD_BOOTLOADER,4,2         ; @PICOLCD_BOOTLOADER
	.comm	_PICOLCD_FAILED,4,2             ; @PICOLCD_FAILED
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
.subsections_via_symbols
