	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_i2c_dma_unmap
_rcar_i2c_dma_unmap:                    ## @rcar_i2c_dma_unmap
	.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, %rbx
	movq	(%rdi), %rax
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r13
	xorl	%ecx, %ecx
	cmpq	(%r13), %rax
	sete	%cl
	movq	24(%rdi,%rcx,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	leaq	20(%rdi), %r15
	movq	%r15, %rdi
	callq	_sg_dma_address
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_sg_dma_len
	movq	(%rbx), %rcx
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	8(%rbx), %rax
	movq	_I2C_RCAR_GEN3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.2:
	movq	_ID_P_NO_RXDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
LBB0_3:
	movq	_DMA_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_ICDMAER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcar_i2c_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,8,3            ## @DMA_FROM_DEVICE
	.comm	_I2C_RCAR_GEN3,8,3              ## @I2C_RCAR_GEN3
	.comm	_ID_P_NO_RXDMA,4,2              ## @ID_P_NO_RXDMA
	.comm	_DMA_NONE,8,3                   ## @DMA_NONE
	.comm	_ICDMAER,4,2                    ## @ICDMAER
	.no_dead_strip	_rcar_i2c_dma_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_i2c_dma_unmap
_rcar_i2c_dma_unmap:                    ; @rcar_i2c_dma_unmap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	x9, [x23]
	mov	w10, #24
	mov	w11, #32
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x8, [x0, x8]
	ldr	x8, [x8]
	ldr	w20, [x8]
	add	x21, x0, #20
	mov	x0, x21
	bl	_sg_dma_address
	mov	x22, x0
	mov	x0, x21
	bl	_sg_dma_len
	mov	x2, x0
	ldr	x3, [x19]
	mov	x0, x20
	mov	x1, x22
	bl	_dma_unmap_single
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _I2C_RCAR_GEN3@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2C_RCAR_GEN3@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _ID_P_NO_RXDMA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ID_P_NO_RXDMA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_3:
Lloh8:
	adrp	x8, _DMA_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh11:
	adrp	x8, _ICDMAER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICDMAER@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rcar_i2c_write
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,8,3            ; @DMA_FROM_DEVICE
	.comm	_I2C_RCAR_GEN3,8,3              ; @I2C_RCAR_GEN3
	.comm	_ID_P_NO_RXDMA,4,2              ; @ID_P_NO_RXDMA
	.comm	_DMA_NONE,8,3                   ; @DMA_NONE
	.comm	_ICDMAER,4,2                    ; @ICDMAER
	.no_dead_strip	_rcar_i2c_dma_unmap
.subsections_via_symbols
