	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reprogram_dma_ir_prg
_reprogram_dma_ir_prg:                  ## @reprogram_dma_ir_prg
	.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	%rdi, %r13
	movq	8(%rdi), %rax
	movq	32(%rdi), %rcx
	movslq	%esi, %rdi
	movq	(%rcx,%rdi,8), %r12
	leaq	24(%r13), %r14
	movslq	(%r13), %rsi
	movslq	%edx, %rcx
	imulq	%rcx, %rsi
	movq	24(%r13), %r15
	addq	%rsi, %r15
	movl	%ecx, (%rax,%rdi,4)
	movq	%r14, %rdi
	callq	_dma_region_offset_to_bus
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
	movq	%r15, %rsi
	subq	24(%r13), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_dma_region_offset_to_bus
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r12)
	movl	$2, %ebx
	cmpl	$4, 16(%r13)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_4
## %bb.1:
	addq	$32, %r12
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rbx), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	movq	%r15, %rsi
	subq	24(%r13), %rsi
	addq	%rcx, %rsi
	movq	%r14, %rdi
	callq	_dma_region_offset_to_bus
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
	incq	%rbx
	movslq	16(%r13), %rax
	decq	%rax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_4:
	movq	_DMA_CTL_INPUT_MORE@GOTPCREL(%rip), %rax
	movq	_DMA_CTL_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_DMA_CTL_IRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_DMA_CTL_BRANCH@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	20(%r13), %edi
	callq	_cpu_to_le32
	movq	%r12, %rcx
	movl	%ebx, %r12d
	shlq	$4, %r12
	movq	%rax, 8(%rcx,%r12)
	movslq	%ebx, %rax
	decq	%rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	subq	24(%r13), %r15
	addq	%rcx, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dma_region_offset_to_bus
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_CTL_INPUT_MORE,4,2         ## @DMA_CTL_INPUT_MORE
	.comm	_DMA_CTL_UPDATE,4,2             ## @DMA_CTL_UPDATE
	.comm	_DMA_CTL_IRQ,4,2                ## @DMA_CTL_IRQ
	.comm	_DMA_CTL_BRANCH,4,2             ## @DMA_CTL_BRANCH
	.no_dead_strip	_reprogram_dma_ir_prg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reprogram_dma_ir_prg
_reprogram_dma_ir_prg:                  ; @reprogram_dma_ir_prg
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldr	x21, [x8, w1, sxtw #3]
	mov	x19, x0
	ldr	x9, [x19, #24]!
	ldrsw	x8, [x0]
	sxtw	x10, w2
	mul	x8, x8, x10
	add	x22, x9, x8
	ldr	x9, [x0, #8]
	str	w2, [x9, w1, sxtw #2]
	mov	x0, x19
	mov	x1, x8
	bl	_dma_region_offset_to_bus
	bl	_cpu_to_le32
	str	x0, [x21]
	ldr	x8, [x19]
	sub	x8, x22, x8
	add	x1, x8, #4
	mov	x0, x19
	bl	_dma_region_offset_to_bus
	bl	_cpu_to_le32
	str	x0, [x21, #16]
	ldr	w8, [x20, #16]
Lloh0:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.1:
	add	x25, x21, #32
	mov	w24, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x24, #1
	ldrsw	x9, [x23]
	ldr	x10, [x20, #24]
	sub	x10, x22, x10
	madd	x1, x8, x9, x10
	mov	x0, x19
	bl	_dma_region_offset_to_bus
	bl	_cpu_to_le32
	str	x0, [x25], #16
	add	x24, x24, #1
	ldrsw	x8, [x20, #16]
	sub	x8, x8, #1
	cmp	x24, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w24, #2
LBB0_4:
Lloh2:
	adrp	x8, _DMA_CTL_INPUT_MORE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_CTL_INPUT_MORE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DMA_CTL_UPDATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DMA_CTL_UPDATE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _DMA_CTL_IRQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMA_CTL_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _DMA_CTL_BRANCH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DMA_CTL_BRANCH@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20, #20]
	orr	w0, w8, w9
	bl	_cpu_to_le32
	add	x21, x21, w24, uxtw #4
	str	x0, [x21, #8]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x8, w24
	sub	x8, x8, #1
	ldrsw	x9, [x23]
	ldr	x10, [x20, #24]
	sub	x10, x22, x10
	madd	x1, x9, x8, x10
	mov	x0, x19
	bl	_dma_region_offset_to_bus
	bl	_cpu_to_le32
	str	x0, [x21]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_CTL_INPUT_MORE,4,2         ; @DMA_CTL_INPUT_MORE
	.comm	_DMA_CTL_UPDATE,4,2             ; @DMA_CTL_UPDATE
	.comm	_DMA_CTL_IRQ,4,2                ; @DMA_CTL_IRQ
	.comm	_DMA_CTL_BRANCH,4,2             ; @DMA_CTL_BRANCH
	.no_dead_strip	_reprogram_dma_ir_prg
.subsections_via_symbols
