	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_fb_reset               ## -- Begin function picolcd_fb_reset
	.p2align	4, 0x90
_picolcd_fb_reset:                      ## @picolcd_fb_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_REPORT_LCD_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	_picolcd_out_report
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r13
	cmpl	$1, (%rax)
	jne	LBB0_2
## %bb.3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	xorl	%r14d, %r14d
	leaq	_picolcd_fb_reset.mapcmd(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r15), %edi
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_hid_hw_request
	incl	%r14d
	cmpl	$4, %r14d
	je	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	(,%r14,4), %edx
	xorl	%esi, %esi
	callq	_hid_set_field
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	cmpl	$2, (%rdi)
	jl	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movl	%ebx, %esi
	callq	_hid_set_field
	incq	%rbx
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	movslq	(%rdi), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%edx, %edx
	cmpq	$31, %rbx
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r12,%rbx,4), %edx
	jmp	LBB0_9
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	movl	16(%rbx), %edi
	movq	_PICOLCDFB_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %edx
	movl	12(%rbx), %edi
	imull	(%r14), %edx
	xorl	%esi, %esi
	callq	_memset
LBB0_13:
	movl	$1, 4(%rbx)
	cmpl	$0, 8(%rbx)
	je	LBB0_15
## %bb.14:
	movq	(%r15), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_schedule_delayed_work
	jmp	LBB0_16
LBB0_15:
	movl	$1, 8(%rbx)
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REPORT_LCD_CMD,4,2             ## @REPORT_LCD_CMD
	.section	__TEXT,__const
	.p2align	4                               ## @picolcd_fb_reset.mapcmd
_picolcd_fb_reset.mapcmd:
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	100                             ## 0x64
	.long	63                              ## 0x3f
	.long	0                               ## 0x0
	.long	100                             ## 0x64
	.long	192                             ## 0xc0

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.comm	_PICOLCDFB_SIZE,4,2             ## @PICOLCDFB_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_fb_reset               ; -- Begin function picolcd_fb_reset
	.p2align	2
_picolcd_fb_reset:                      ; @picolcd_fb_reset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _REPORT_LCD_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REPORT_LCD_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	_picolcd_out_report
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.2:
	ldr	x8, [x19]
	ldr	x24, [x8, #8]
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	w25, #0
Lloh3:
	adrp	x26, _picolcd_fb_reset.mapcmd@PAGE
Lloh4:
	add	x26, x26, _picolcd_fb_reset.mapcmd@PAGEOFF
Lloh5:
	adrp	x27, _HID_REQ_SET_REPORT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _HID_REQ_SET_REPORT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #12]
	ldr	w2, [x27]
	mov	x1, x21
	bl	_hid_hw_request
	add	w25, w25, #1
	cmp	w25, #4
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w2, w25, #2
	mov	w1, #0
	bl	_hid_set_field
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w2, [x26, x23, lsl #2]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x1, x23
	bl	_hid_set_field
	add	x23, x23, #1
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	ldrsw	x8, [x0]
	cmp	x23, x8
	b.ge	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x23, #31
	b.ls	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w2, #0
	b	LBB0_8
LBB0_11:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_12:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	w20, LBB0_14
; %bb.13:
	ldr	w0, [x24, #16]
Lloh10:
	adrp	x20, _PICOLCDFB_SIZE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _PICOLCDFB_SIZE@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_memset
	ldr	w0, [x24, #12]
	ldr	w8, [x20]
	ldr	w9, [x24]
	mul	w2, w9, w8
	mov	w1, #0
	bl	_memset
LBB0_14:
	mov	w8, #1
	str	w8, [x24, #4]
	ldr	w9, [x24, #8]
	cbz	w9, LBB0_16
; %bb.15:
	ldr	x0, [x19]
	mov	w1, #0
	bl	_schedule_delayed_work
	mov	w0, #0
	b	LBB0_17
LBB0_16:
	mov	w0, #0
	str	w8, [x24, #8]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REPORT_LCD_CMD,4,2             ; @REPORT_LCD_CMD
	.section	__TEXT,__const
	.p2align	2                               ; @picolcd_fb_reset.mapcmd
_picolcd_fb_reset.mapcmd:
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	100                             ; 0x64
	.long	63                              ; 0x3f
	.long	0                               ; 0x0
	.long	100                             ; 0x64
	.long	192                             ; 0xc0

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.comm	_PICOLCDFB_SIZE,4,2             ; @PICOLCDFB_SIZE
.subsections_via_symbols
