	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_init_lcd               ## -- Begin function picolcd_init_lcd
	.p2align	4, 0x90
_picolcd_init_lcd:                      ## @picolcd_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	cmpl	$1, (%rsi)
	jne	LBB0_6
## %bb.4:
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_6
## %bb.5:
	cmpl	$8, 4(%rax)
	jne	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_dev_name
	movq	_picolcd_lcdops@GOTPCREL(%rip), %rcx
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_lcd_device_register
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$255, (%r15)
	movl	$229, (%rbx)
	movq	%r15, 8(%rbx)
	movq	%r15, %rdi
	movl	$229, %esi
	callq	_picolcd_set_contrast
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported CONTRAST report"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_picolcd_lcdops,4,2             ## @picolcd_lcdops
L_.str.1:                               ## @.str.1
	.asciz	"failed to register LCD\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_init_lcd               ; -- Begin function picolcd_init_lcd
	.p2align	2
_picolcd_init_lcd:                      ; @picolcd_init_lcd
	.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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w8, [x1]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x8, #4]
	cmp	w8, #8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_dev_name
Lloh0:
	adrp	x3, _picolcd_lcdops@GOTPAGE
Lloh1:
	ldr	x3, [x3, _picolcd_lcdops@GOTPAGEOFF]
	mov	x1, x20
	mov	x2, x19
	bl	_lcd_device_register
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	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	_PTR_ERR
LBB0_6:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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_10:
	mov	w8, #255
	str	w8, [x21]
	mov	w8, #229
	str	w8, [x19]
	str	x21, [x19, #8]
	mov	x0, x21
	mov	w1, #229
	bl	_picolcd_set_contrast
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported CONTRAST report"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_picolcd_lcdops,4,2             ; @picolcd_lcdops
l_.str.1:                               ; @.str.1
	.asciz	"failed to register LCD\n"

.subsections_via_symbols
