	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dbdma_dmainit              ## -- Begin function ata_dbdma_dmainit
	.p2align	4, 0x90
_ata_dbdma_dmainit:                     ## @ata_dbdma_dmainit
	.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, %r14d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	36(%rax), %r15d
	movl	40(%rax), %r12d
	movl	%r14d, %edi
	callq	_bus_get_dma_tag
	leaq	32(%rbx), %r8
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_dbdma_allocate_channel
	movl	32(%rbx), %edi
	movl	$128, %esi
	movl	$128, %edx
	callq	_dbdma_set_wait_selector
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	callq	_dbdma_insert_stop
	movl	$1, (%rbx)
	movq	_ata_dbdma_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_ata_dbdma_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_ata_dbdma_load@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_ata_dbdma_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$7, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	movl	%ecx, 12(%rbx)
	movl	%r14d, %edi
	callq	_ata_dmainit
	movq	_ata_dbdma_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	addq	$4, %rbx
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_init                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ata_dbdma_start,4,2            ## @ata_dbdma_start
	.comm	_ata_dbdma_stop,4,2             ## @ata_dbdma_stop
	.comm	_ata_dbdma_load,4,2             ## @ata_dbdma_load
	.comm	_ata_dbdma_reset,4,2            ## @ata_dbdma_reset
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
	.comm	_ata_dbdma_status,4,2           ## @ata_dbdma_status
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ATA DBDMA"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dbdma_dmainit              ; -- Begin function ata_dbdma_dmainit
	.p2align	2
_ata_dbdma_dmainit:                     ; @ata_dbdma_dmainit
	.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
	mov	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	ldp	w22, w21, [x0, #36]
	mov	x0, x20
	bl	_bus_get_dma_tag
	mov	x2, x0
	add	x4, x19, #32
	mov	x0, x21
	mov	x1, x22
	mov	w3, #256
	bl	_dbdma_allocate_channel
	ldr	w0, [x19, #32]
	mov	w1, #128
	mov	w2, #128
	bl	_dbdma_set_wait_selector
	ldr	w0, [x19, #32]
	mov	w1, #0
	bl	_dbdma_insert_stop
	mov	w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x8, _ata_dbdma_start@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ata_dbdma_start@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh3:
	adrp	x8, _ata_dbdma_stop@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ata_dbdma_stop@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ata_dbdma_load@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ata_dbdma_load@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
Lloh9:
	adrp	x8, _DEV_BSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEV_BSIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #126
	mul	w8, w8, w9
Lloh12:
	adrp	x9, _ata_dbdma_reset@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ata_dbdma_reset@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #12]
	mov	x0, x20
	bl	_ata_dmainit
Lloh15:
	adrp	x8, _ata_dbdma_status@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ata_dbdma_status@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	add	x0, x19, #4
Lloh18:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	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	_mtx_init
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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	_ata_dbdma_start,4,2            ; @ata_dbdma_start
	.comm	_ata_dbdma_stop,4,2             ; @ata_dbdma_stop
	.comm	_ata_dbdma_load,4,2             ; @ata_dbdma_load
	.comm	_ata_dbdma_reset,4,2            ; @ata_dbdma_reset
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_ata_dbdma_status,4,2           ; @ata_dbdma_status
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ATA DBDMA"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
.subsections_via_symbols
