	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_twi_read_data_dma_callback
_at91_twi_read_data_dma_callback:       ## @at91_twi_read_data_dma_callback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_AT91_TWI_TXCOMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	24(%rdi), %r15d
	movq	16(%rdi), %rdi
	callq	_sg_dma_address
	movl	(%rbx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_dma_unmap_single
	cmpl	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	addl	%ecx, %eax
	addl	$-2, %eax
	movl	%eax, 4(%rbx)
	movl	$2, (%rbx)
	movq	_AT91_TWI_RXRDY@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_2:
	movq	_AT91_TWI_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_at91_twi_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_TWI_TXCOMP,4,2            ## @AT91_TWI_TXCOMP
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_AT91_TWI_RXRDY,4,2             ## @AT91_TWI_RXRDY
	.comm	_AT91_TWI_IER,4,2               ## @AT91_TWI_IER
	.no_dead_strip	_at91_twi_read_data_dma_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_twi_read_data_dma_callback
_at91_twi_read_data_dma_callback:       ; @at91_twi_read_data_dma_callback
	.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	x19, x0
Lloh0:
	adrp	x8, _AT91_TWI_TXCOMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_TWI_TXCOMP@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w21, [x0, #24]
	ldr	x0, [x0, #16]
	bl	_sg_dma_address
	mov	x1, x0
	ldr	w2, [x19]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_dma_unmap_single
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldp	w8, w9, [x19]
	add	w8, w8, w9
	sub	w8, w8, #2
	mov	w9, #2
	stp	w9, w8, [x19]
Lloh6:
	adrp	x8, _AT91_TWI_RXRDY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AT91_TWI_RXRDY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_2:
Lloh9:
	adrp	x8, _AT91_TWI_IER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AT91_TWI_IER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	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	_at91_twi_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_TWI_TXCOMP,4,2            ; @AT91_TWI_TXCOMP
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_AT91_TWI_RXRDY,4,2             ; @AT91_TWI_RXRDY
	.comm	_AT91_TWI_IER,4,2               ; @AT91_TWI_IER
	.no_dead_strip	_at91_twi_read_data_dma_callback
.subsections_via_symbols
