	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function picolcd_probe_lcd
_picolcd_probe_lcd:                     ## @picolcd_probe_lcd
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_REPORT_KEY_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_in_report
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_picolcd_init_keys
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_REPORT_IR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_in_report
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_picolcd_init_cir
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	callq	_picolcd_init_framebuffer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	_REPORT_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_out_report
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_picolcd_init_lcd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_REPORT_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_out_report
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_picolcd_init_backlight
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_REPORT_LED_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_out_report
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_picolcd_init_leds
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_picolcd_exit_leds
	movq	%r15, %rdi
	callq	_picolcd_exit_backlight
	movq	%r15, %rdi
	callq	_picolcd_exit_lcd
	movq	%r15, %rdi
	callq	_picolcd_exit_framebuffer
	movq	%r15, %rdi
	callq	_picolcd_exit_cir
	movq	%r15, %rdi
	callq	_picolcd_exit_keys
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_REPORT_EE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_out_report
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_REPORT_EE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_out_report
	movl	%eax, %r13d
	movq	_REPORT_READ_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_out_report
	movl	%eax, %ebx
	movq	_REPORT_WRITE_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_out_report
	movl	%eax, %r12d
	movq	_REPORT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_picolcd_out_report
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_picolcd_init_devfs
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_REPORT_KEY_STATE,4,2           ## @REPORT_KEY_STATE
	.comm	_REPORT_IR_DATA,4,2             ## @REPORT_IR_DATA
	.comm	_REPORT_CONTRAST,4,2            ## @REPORT_CONTRAST
	.comm	_REPORT_BRIGHTNESS,4,2          ## @REPORT_BRIGHTNESS
	.comm	_REPORT_LED_STATE,4,2           ## @REPORT_LED_STATE
	.comm	_REPORT_EE_READ,4,2             ## @REPORT_EE_READ
	.comm	_REPORT_EE_WRITE,4,2            ## @REPORT_EE_WRITE
	.comm	_REPORT_READ_MEMORY,4,2         ## @REPORT_READ_MEMORY
	.comm	_REPORT_WRITE_MEMORY,4,2        ## @REPORT_WRITE_MEMORY
	.comm	_REPORT_RESET,4,2               ## @REPORT_RESET
	.no_dead_strip	_picolcd_probe_lcd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function picolcd_probe_lcd
_picolcd_probe_lcd:                     ; @picolcd_probe_lcd
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _REPORT_KEY_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REPORT_KEY_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_in_report
	mov	x1, x0
	mov	x0, x19
	bl	_picolcd_init_keys
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _REPORT_IR_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REPORT_IR_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_in_report
	mov	x1, x0
	mov	x0, x19
	bl	_picolcd_init_cir
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_picolcd_init_framebuffer
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _REPORT_CONTRAST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REPORT_CONTRAST@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_out_report
	mov	x1, x0
	mov	x0, x19
	bl	_picolcd_init_lcd
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _REPORT_BRIGHTNESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REPORT_BRIGHTNESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_out_report
	mov	x1, x0
	mov	x0, x19
	bl	_picolcd_init_backlight
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _REPORT_LED_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REPORT_LED_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_out_report
	mov	x1, x0
	mov	x0, x19
	bl	_picolcd_init_leds
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_picolcd_exit_leds
	mov	x0, x19
	bl	_picolcd_exit_backlight
	mov	x0, x19
	bl	_picolcd_exit_lcd
	mov	x0, x19
	bl	_picolcd_exit_framebuffer
	mov	x0, x19
	bl	_picolcd_exit_cir
	mov	x0, x19
	bl	_picolcd_exit_keys
LBB0_7:
	mov	x0, x21
	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_8:
Lloh15:
	adrp	x8, _REPORT_EE_READ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REPORT_EE_READ@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_out_report
	mov	x21, x0
Lloh18:
	adrp	x8, _REPORT_EE_WRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REPORT_EE_WRITE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_out_report
	mov	x22, x0
Lloh21:
	adrp	x8, _REPORT_READ_MEMORY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REPORT_READ_MEMORY@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_out_report
	mov	x23, x0
Lloh24:
	adrp	x8, _REPORT_WRITE_MEMORY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REPORT_WRITE_MEMORY@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_out_report
	mov	x24, x0
Lloh27:
	adrp	x8, _REPORT_RESET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REPORT_RESET@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_picolcd_out_report
	mov	x5, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_picolcd_init_devfs
	mov	w21, #0
	b	LBB0_7
	.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	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_REPORT_KEY_STATE,4,2           ; @REPORT_KEY_STATE
	.comm	_REPORT_IR_DATA,4,2             ; @REPORT_IR_DATA
	.comm	_REPORT_CONTRAST,4,2            ; @REPORT_CONTRAST
	.comm	_REPORT_BRIGHTNESS,4,2          ; @REPORT_BRIGHTNESS
	.comm	_REPORT_LED_STATE,4,2           ; @REPORT_LED_STATE
	.comm	_REPORT_EE_READ,4,2             ; @REPORT_EE_READ
	.comm	_REPORT_EE_WRITE,4,2            ; @REPORT_EE_WRITE
	.comm	_REPORT_READ_MEMORY,4,2         ; @REPORT_READ_MEMORY
	.comm	_REPORT_WRITE_MEMORY,4,2        ; @REPORT_WRITE_MEMORY
	.comm	_REPORT_RESET,4,2               ; @REPORT_RESET
	.no_dead_strip	_picolcd_probe_lcd
.subsections_via_symbols
