	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hd44780_command
_hd44780_command:                       ## @hd44780_command
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leal	-128(%rbx), %eax
	cmpl	$5, %eax
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_hd_font@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_hd_cursor@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	leaq	L_.str.4(%rip), %r8
	leaq	L_.str.3(%rip), %rax
	cmovneq	%rax, %r8
	movq	_hd_lines@GOTPCREL(%rip), %rbx
	movq	_hd_blink@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movl	(%rbx), %edx
	leaq	L_.str.5(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_debug
	xorl	%eax, %eax
	cmpl	$2, (%rbx)
	sete	%al
	shll	$3, %eax
	xorl	%ecx, %ecx
	cmpl	$0, (%r12)
	setne	%cl
	leal	(%rax,%rcx,4), %ebx
	addl	$48, %ebx
	movq	_HD_COMMAND@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_hd44780_output
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_usleep
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_hd44780_output
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_usleep
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_hd44780_output
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_usleep
	movl	(%r12), %edi
	movl	$8, %esi
	callq	_hd44780_output
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_usleep
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	setne	%al
	xorl	%ecx, %ecx
	cmpl	$0, (%r15)
	setne	%cl
	leal	(%rcx,%rax,2), %esi
	addl	$12, %esi
	movl	(%r12), %edi
	callq	_hd44780_output
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_usleep
	movl	(%r12), %edi
	movl	$6, %esi
	callq	_hd44780_output
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_usleep
LBB0_3:
	movq	_HD_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	jmp	LBB0_4
LBB0_10:
	movl	%ebx, %edi
	callq	_isprint
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_13
LBB0_6:
	movq	_hd_lines@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_14
## %bb.7:
	movq	_HD_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$192, %esi
	callq	_hd44780_output
	jmp	LBB0_14
LBB0_9:
	movq	_HD_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
LBB0_4:
	callq	_hd44780_output
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_usleep
	jmp	LBB0_14
LBB0_8:
	movq	_HD_COMMAND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_hd44780_input
                                        ## kill: def $eax killed $eax def $rax
	andl	$63, %eax
	movl	(%rbx), %edi
	leal	128(%rax), %esi
	callq	_hd44780_output
	jmp	LBB0_14
LBB0_5:
	movq	_HD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$16, %esi
	callq	_hd44780_output
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.7(%rip), %rdi
LBB0_13:
	movl	%ebx, %esi
	callq	_warnx
LBB0_14:
	movl	$40, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usleep                         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hd44780: reset to %d lines, %s font,%s%s cursor"

	.comm	_hd_lines,4,2                   ## @hd_lines
	.comm	_hd_font,4,2                    ## @hd_font
L_.str.1:                               ## @.str.1
	.asciz	"5x10"

L_.str.2:                               ## @.str.2
	.asciz	"5x7"

	.comm	_hd_cursor,4,2                  ## @hd_cursor
L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	" no"

	.comm	_hd_blink,4,2                   ## @hd_blink
L_.str.5:                               ## @.str.5
	.asciz	" blinking"

	.comm	_HD_COMMAND,4,2                 ## @HD_COMMAND
	.comm	_HD_DATA,4,2                    ## @HD_DATA
L_.str.6:                               ## @.str.6
	.asciz	"unknown command %c"

L_.str.7:                               ## @.str.7
	.asciz	"unknown command 0x%x"

	.no_dead_strip	_hd44780_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hd44780_command
_hd44780_command:                       ; @hd44780_command
	.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
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x19, _hd_lines@GOTPAGE
Lloh3:
	ldr	x19, [x19, _hd_lines@GOTPAGEOFF]
Lloh4:
	adrp	x22, _hd_font@GOTPAGE
Lloh5:
	ldr	x22, [x22, _hd_font@GOTPAGEOFF]
	ldr	w2, [x19]
	ldr	w8, [x22]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str.2@PAGE
Lloh9:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x3, x10, x9, eq
Lloh10:
	adrp	x20, _hd_cursor@GOTPAGE
Lloh11:
	ldr	x20, [x20, _hd_cursor@GOTPAGEOFF]
Lloh12:
	adrp	x8, l_.str.3@PAGE
Lloh13:
	add	x8, x8, l_.str.3@PAGEOFF
	ldr	w9, [x20]
Lloh14:
	adrp	x10, l_.str.4@PAGE
Lloh15:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w9, #0
Lloh16:
	adrp	x21, _hd_blink@GOTPAGE
Lloh17:
	ldr	x21, [x21, _hd_blink@GOTPAGEOFF]
	csel	x4, x10, x8, eq
	ldr	w9, [x21]
Lloh18:
	adrp	x10, l_.str.5@PAGE
Lloh19:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w9, #0
	csel	x5, x8, x10, eq
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_debug
	ldr	w8, [x19]
	mov	w9, #48
	mov	w10, #56
	cmp	w8, #2
	csel	w8, w10, w9, eq
	ldr	w9, [x22]
	orr	w10, w8, #0x4
	cmp	w9, #0
	csel	w19, w8, w10, eq
Lloh22:
	adrp	x22, _HD_COMMAND@GOTPAGE
Lloh23:
	ldr	x22, [x22, _HD_COMMAND@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_hd44780_output
	mov	w0, #10000
	bl	_usleep
	ldr	w0, [x22]
	mov	x1, x19
	bl	_hd44780_output
	mov	w0, #1000
	bl	_usleep
	ldr	w0, [x22]
	mov	x1, x19
	bl	_hd44780_output
	mov	w0, #1000
	bl	_usleep
	ldr	w0, [x22]
	mov	w1, #8
	bl	_hd44780_output
	mov	w0, #1000
	bl	_usleep
	ldr	w8, [x20]
	mov	w9, #14
	mov	w10, #12
	cmp	w8, #0
	csel	w8, w10, w9, eq
	ldr	w9, [x21]
	cmp	w9, #0
	cset	w9, ne
	orr	w1, w8, w9
	ldr	w0, [x22]
	bl	_hd44780_output
	mov	w0, #1000
	bl	_usleep
	ldr	w0, [x22]
	mov	w1, #6
	bl	_hd44780_output
	mov	w0, #1000
	bl	_usleep
LBB0_3:
Lloh24:
	adrp	x8, _HD_COMMAND@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HD_COMMAND@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w1, #1
	b	LBB0_9
LBB0_4:
	mov	x19, x0
	bl	_isprint
	cbz	w0, LBB0_12
; %bb.5:
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_6:
Lloh29:
	adrp	x8, _hd_lines@GOTPAGE
Lloh30:
	ldr	x8, [x8, _hd_lines@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_14
; %bb.7:
Lloh32:
	adrp	x8, _HD_COMMAND@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HD_COMMAND@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	w1, #192
	bl	_hd44780_output
	b	LBB0_14
LBB0_8:
Lloh35:
	adrp	x8, _HD_COMMAND@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HD_COMMAND@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	w1, #2
LBB0_9:
	bl	_hd44780_output
	mov	w0, #2000
	bl	_usleep
	b	LBB0_14
LBB0_10:
Lloh38:
	adrp	x19, _HD_COMMAND@GOTPAGE
Lloh39:
	ldr	x19, [x19, _HD_COMMAND@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_hd44780_input
	ldr	w8, [x19]
	mov	w1, #128
	bfxil	w1, w0, #0, #6
	mov	x0, x8
	bl	_hd44780_output
	b	LBB0_14
LBB0_11:
Lloh40:
	adrp	x8, _HD_DATA@GOTPAGE
Lloh41:
	ldr	x8, [x8, _HD_DATA@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	mov	w1, #16
	bl	_hd44780_output
	b	LBB0_14
LBB0_12:
Lloh43:
	adrp	x0, l_.str.7@PAGE
Lloh44:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_13:
	mov	x1, x19
	bl	_warnx
LBB0_14:
	mov	w0, #40
	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	_usleep
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hd44780: reset to %d lines, %s font,%s%s cursor"

	.comm	_hd_lines,4,2                   ; @hd_lines
	.comm	_hd_font,4,2                    ; @hd_font
l_.str.1:                               ; @.str.1
	.asciz	"5x10"

l_.str.2:                               ; @.str.2
	.asciz	"5x7"

	.comm	_hd_cursor,4,2                  ; @hd_cursor
l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	" no"

	.comm	_hd_blink,4,2                   ; @hd_blink
l_.str.5:                               ; @.str.5
	.asciz	" blinking"

	.comm	_HD_COMMAND,4,2                 ; @HD_COMMAND
	.comm	_HD_DATA,4,2                    ; @HD_DATA
l_.str.6:                               ; @.str.6
	.asciz	"unknown command %c"

l_.str.7:                               ; @.str.7
	.asciz	"unknown command 0x%x"

	.no_dead_strip	_hd44780_command
.subsections_via_symbols
