	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_kauai_begin_transaction
_ata_kauai_begin_transaction:           ## @ata_kauai_begin_transaction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	24(%rax), %edi
	movq	_UDMA_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edx
	callq	_bus_write_4
	movl	24(%rbx), %edi
	movq	_PIO_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movl	(%rdx,%rax,4), %edx
	orl	(%rcx,%rax,4), %edx
	callq	_bus_write_4
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ata_begin_transaction          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UDMA_CONFIG_REG,4,2            ## @UDMA_CONFIG_REG
	.comm	_PIO_CONFIG_REG,4,2             ## @PIO_CONFIG_REG
	.no_dead_strip	_ata_kauai_begin_transaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_kauai_begin_transaction
_ata_kauai_begin_transaction:           ; @ata_kauai_begin_transaction
	.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
	ldr	w0, [x0, #8]
	bl	_device_get_softc
	mov	x20, x0
Lloh0:
	adrp	x8, _UDMA_CONFIG_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UDMA_CONFIG_REG@GOTPAGEOFF]
	ldr	w0, [x0, #24]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	w2, [x8, x9, lsl #2]
	bl	_bus_write_4
	ldr	w0, [x20, #24]
Lloh3:
	adrp	x8, _PIO_CONFIG_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIO_CONFIG_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19]
	lsl	x8, x8, #2
	ldp	x9, x10, [x20, #8]
	ldr	w9, [x9, x8]
	ldr	w8, [x10, x8]
	orr	w2, w8, w9
	bl	_bus_write_4
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ata_begin_transaction
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UDMA_CONFIG_REG,4,2            ; @UDMA_CONFIG_REG
	.comm	_PIO_CONFIG_REG,4,2             ; @PIO_CONFIG_REG
	.no_dead_strip	_ata_kauai_begin_transaction
.subsections_via_symbols
