	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm1105_hw_init
_dm1105_hw_init:                        ## @dm1105_hw_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_dm1105_disable_irqs
	movq	_DM1105_HOST_CTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_dm_writeb
	movq	_DM1105_DTALENTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$188, %esi
	callq	_dm_writeb
	movq	_DM1105_TSCTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$49418, %esi                    ## imm = 0xC10A
	callq	_dm_writew
	movq	%rbx, %rdi
	callq	_dm1105_dma_map
	movq	%rbx, %rdi
	callq	_dm1105_set_dma_addr
	movq	_DM1105_RLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DM1105_DMA_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %esi
	callq	_dm_writel
	movq	_DM1105_INTCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$47, %esi
	callq	_dm_writeb
	movq	_DM1105_IRCTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DM1105_IR_EN@GOTPCREL(%rip), %rax
	movq	_DM1105_SYS_CHK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_dm_writeb
	movq	_DM1105_IRMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_dm_writeb
	movq	_DM1105_SYSTEMCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_dm_writew
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM1105_HOST_CTR,4,2            ## @DM1105_HOST_CTR
	.comm	_DM1105_DTALENTH,4,2            ## @DM1105_DTALENTH
	.comm	_DM1105_TSCTR,4,2               ## @DM1105_TSCTR
	.comm	_DM1105_RLEN,4,2                ## @DM1105_RLEN
	.comm	_DM1105_DMA_BYTES,4,2           ## @DM1105_DMA_BYTES
	.comm	_DM1105_INTCNT,4,2              ## @DM1105_INTCNT
	.comm	_DM1105_IRCTR,4,2               ## @DM1105_IRCTR
	.comm	_DM1105_IR_EN,4,2               ## @DM1105_IR_EN
	.comm	_DM1105_SYS_CHK,4,2             ## @DM1105_SYS_CHK
	.comm	_DM1105_IRMODE,4,2              ## @DM1105_IRMODE
	.comm	_DM1105_SYSTEMCODE,4,2          ## @DM1105_SYSTEMCODE
	.no_dead_strip	_dm1105_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm1105_hw_init
_dm1105_hw_init:                        ; @dm1105_hw_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_dm1105_disable_irqs
Lloh0:
	adrp	x8, _DM1105_HOST_CTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM1105_HOST_CTR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_dm_writeb
Lloh3:
	adrp	x8, _DM1105_DTALENTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM1105_DTALENTH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #188
	bl	_dm_writeb
Lloh6:
	adrp	x8, _DM1105_TSCTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DM1105_TSCTR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #49418
	bl	_dm_writew
	mov	x0, x19
	bl	_dm1105_dma_map
	mov	x0, x19
	bl	_dm1105_set_dma_addr
Lloh9:
	adrp	x8, _DM1105_RLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DM1105_RLEN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _DM1105_DMA_BYTES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DM1105_DMA_BYTES@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #2
	bl	_dm_writel
Lloh15:
	adrp	x8, _DM1105_INTCNT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DM1105_INTCNT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #47
	bl	_dm_writeb
Lloh18:
	adrp	x8, _DM1105_IRCTR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DM1105_IRCTR@GOTPAGEOFF]
Lloh20:
	adrp	x9, _DM1105_IR_EN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DM1105_IR_EN@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	ldr	w8, [x9]
Lloh24:
	adrp	x9, _DM1105_SYS_CHK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DM1105_SYS_CHK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_dm_writeb
Lloh27:
	adrp	x8, _DM1105_IRMODE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DM1105_IRMODE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_dm_writeb
Lloh30:
	adrp	x8, _DM1105_SYSTEMCODE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DM1105_SYSTEMCODE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_dm_writew
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DM1105_HOST_CTR,4,2            ; @DM1105_HOST_CTR
	.comm	_DM1105_DTALENTH,4,2            ; @DM1105_DTALENTH
	.comm	_DM1105_TSCTR,4,2               ; @DM1105_TSCTR
	.comm	_DM1105_RLEN,4,2                ; @DM1105_RLEN
	.comm	_DM1105_DMA_BYTES,4,2           ; @DM1105_DMA_BYTES
	.comm	_DM1105_INTCNT,4,2              ; @DM1105_INTCNT
	.comm	_DM1105_IRCTR,4,2               ; @DM1105_IRCTR
	.comm	_DM1105_IR_EN,4,2               ; @DM1105_IR_EN
	.comm	_DM1105_SYS_CHK,4,2             ; @DM1105_SYS_CHK
	.comm	_DM1105_IRMODE,4,2              ; @DM1105_IRMODE
	.comm	_DM1105_SYSTEMCODE,4,2          ; @DM1105_SYSTEMCODE
	.no_dead_strip	_dm1105_hw_init
.subsections_via_symbols
