	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_write_command
_hdmi_write_command:                    ## @hdmi_write_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	%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, %rbx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	$251, %esi
	callq	_oxygen_write_uart
	movq	%r14, %rdi
	movl	$239, %esi
	callq	_oxygen_write_uart
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_oxygen_write_uart
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_oxygen_write_uart
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r12,4), %esi
	movq	%r14, %rdi
	callq	_oxygen_write_uart
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r15), %esi
	addl	$490, %esi                      ## imm = 0x1EA
	cmpl	$8, %r15d
	jae	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	leal	(%r12,%r15), %esi
	addl	$490, %esi                      ## imm = 0x1EA
	jmp	LBB0_15
LBB0_6:
	movl	%r13d, %eax
	andl	$-8, %eax
	movd	%esi, %xmm0
	leaq	-8(%rax), %rdx
	movq	%rdx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$24, %rdx
	jae	LBB0_8
## %bb.7:
	pxor	%xmm1, %xmm1
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_8:
	andq	$-4, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rdx,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rbx,%rdx,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rbx,%rdx,4), %xmm1
	movdqu	48(%rbx,%rdx,4), %xmm3
	movdqu	64(%rbx,%rdx,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	80(%rbx,%rdx,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	96(%rbx,%rdx,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	112(%rbx,%rdx,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rdx
	addq	$-4, %rsi
	jne	LBB0_9
LBB0_10:
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:
	leaq	(%rbx,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdx,%rsi), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rdx,%rsi), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_12
LBB0_13:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%r13, %rax
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rbx,%rax,4), %esi
	incq	%rax
	cmpq	%rax, %r13
	jne	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_oxygen_write_uart              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hdmi_write_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_write_command
_hdmi_write_command:                    ; @hdmi_write_command
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	w1, #251
	bl	_oxygen_write_uart
	mov	x0, x19
	mov	w1, #239
	bl	_oxygen_write_uart
	mov	x0, x19
	mov	x1, x22
	bl	_oxygen_write_uart
	mov	x0, x19
	mov	x1, x21
	bl	_oxygen_write_uart
	cbz	w21, LBB0_5
; %bb.1:
	mov	w23, w21
	mov	x24, x23
	mov	x25, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25], #4
	mov	x0, x19
	bl	_oxygen_write_uart
	subs	x24, x24, #1
	b.ne	LBB0_2
; %bb.3:
	add	w8, w22, w21
	add	w1, w8, #490
	cmp	w21, #16
	b.hs	LBB0_6
; %bb.4:
	mov	x8, #0
	b	LBB0_9
LBB0_5:
	add	w8, w22, w21
	add	w1, w8, #490
	b	LBB0_11
LBB0_6:
	and	x8, x23, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w1
	add	x9, x20, #32
	mov	x10, x8
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	add.4s	v1, v4, v1
	add.4s	v0, v5, v0
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x10, x10, #16
	b.ne	LBB0_7
; %bb.8:
	add.4s	v0, v0, v1
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w1, s0
	cmp	x8, x23
	b.eq	LBB0_11
LBB0_9:
	add	x9, x20, x8, lsl #2
	sub	x8, x23, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	add	w1, w10, w1
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_oxygen_write_uart
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hdmi_write_command
.subsections_via_symbols
