	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function picolcd_operation_mode_store
_picolcd_operation_mode_store:          ## @picolcd_operation_mode_store
	.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	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movl	(%rax), %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_PICOLCD_BOOTLOADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_8
## %bb.2:
	movq	_REPORT_EXIT_FLASHER@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	movl	12(%r13), %esi
	callq	_picolcd_out_report
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r15
	cmpl	$1, (%rax)
	jne	LBB0_8
## %bb.9:
	movq	%r13, %rdi
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	%r12d, %ebx
	movzbl	%bl, %edx
	xorl	%esi, %esi
	callq	_hid_set_field
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movzbl	%bh, %edx
	movl	$1, %esi
	callq	_hid_set_field
	movl	12(%r13), %edi
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_hid_hw_request
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_PICOLCD_BOOTLOADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_5
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_REPORT_EXIT_KEYBOARD@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lcd"

	.comm	_PICOLCD_BOOTLOADER,4,2         ## @PICOLCD_BOOTLOADER
	.comm	_REPORT_EXIT_FLASHER,4,2        ## @REPORT_EXIT_FLASHER
L_.str.1:                               ## @.str.1
	.asciz	"bootloader"

	.comm	_REPORT_EXIT_KEYBOARD,4,2       ## @REPORT_EXIT_KEYBOARD
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.no_dead_strip	_picolcd_operation_mode_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function picolcd_operation_mode_store
_picolcd_operation_mode_store:          ; @picolcd_operation_mode_store
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	w23, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_sysfs_streq
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x20, #4]
Lloh2:
	adrp	x9, _PICOLCD_BOOTLOADER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PICOLCD_BOOTLOADER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
Lloh5:
	adrp	x8, _REPORT_EXIT_FLASHER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REPORT_EXIT_FLASHER@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_picolcd_out_report
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.5:
	add	x22, x20, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	and	w2, w23, #0xff
	mov	w1, #0
	bl	_hid_set_field
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ubfx	w2, w23, #8, #8
	mov	w1, #1
	bl	_hid_set_field
	ldr	w0, [x20, #12]
Lloh7:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_hid_hw_request
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_sysfs_streq
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x20, #4]
Lloh12:
	adrp	x9, _PICOLCD_BOOTLOADER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PICOLCD_BOOTLOADER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_8:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_9:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh18:
	adrp	x8, _REPORT_EXIT_KEYBOARD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REPORT_EXIT_KEYBOARD@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lcd"

	.comm	_PICOLCD_BOOTLOADER,4,2         ; @PICOLCD_BOOTLOADER
	.comm	_REPORT_EXIT_FLASHER,4,2        ; @REPORT_EXIT_FLASHER
l_.str.1:                               ; @.str.1
	.asciz	"bootloader"

	.comm	_REPORT_EXIT_KEYBOARD,4,2       ; @REPORT_EXIT_KEYBOARD
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.no_dead_strip	_picolcd_operation_mode_store
.subsections_via_symbols
