	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_i2c_request_dma_chan
_rcar_i2c_request_dma_chan:             ## @rcar_i2c_request_dma_chan
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	%rbx, %rsi
	callq	_dma_request_chan
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_8
LBB0_2:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%r13d, -80(%rbp)
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r12, -48(%rbp)
	movq	_DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	jmp	LBB0_5
LBB0_4:
	movq	%r12, -64(%rbp)
	movq	_DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
LBB0_5:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_dmaengine_slave_config
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r14, %rdi
	callq	_dma_release_channel
	movl	%r12d, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_8:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

L_.str.1:                               ## @.str.1
	.asciz	"rx"

L_.str.2:                               ## @.str.2
	.asciz	"request_channel failed for %s (%ld)\n"

	.comm	_DMA_SLAVE_BUSWIDTH_1_BYTE,8,3  ## @DMA_SLAVE_BUSWIDTH_1_BYTE
L_.str.3:                               ## @.str.3
	.asciz	"slave_config failed for %s (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"got DMA channel for %s\n"

	.no_dead_strip	_rcar_i2c_request_dma_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_i2c_request_dma_chan
_rcar_i2c_request_dma_chan:             ; @rcar_i2c_request_dma_chan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _DMA_MEM_TO_DEV@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_MEM_TO_DEV@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh4:
	adrp	x10, l_.str@PAGE
Lloh5:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, w1
	csel	x20, x10, x9, eq
	mov	x1, x20
	bl	_dma_request_chan
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_2:
	mov	x0, x21
	mov	x2, x20
	bl	_dev_dbg
	b	LBB0_8
LBB0_3:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	w23, [sp, #8]
	ldr	w8, [x24]
	cmp	w8, w23
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	stp	x8, x22, [sp, #32]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	stp	x8, x22, [sp, #16]
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_dmaengine_slave_config
	cbz	w0, LBB0_9
; %bb.7:
	mov	x22, x0
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_dbg
	mov	x0, x19
	bl	_dma_release_channel
	mov	x0, x22
	bl	_ERR_PTR
	mov	x19, x0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

l_.str.1:                               ; @.str.1
	.asciz	"rx"

l_.str.2:                               ; @.str.2
	.asciz	"request_channel failed for %s (%ld)\n"

	.comm	_DMA_SLAVE_BUSWIDTH_1_BYTE,8,3  ; @DMA_SLAVE_BUSWIDTH_1_BYTE
l_.str.3:                               ; @.str.3
	.asciz	"slave_config failed for %s (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"got DMA channel for %s\n"

	.no_dead_strip	_rcar_i2c_request_dma_chan
.subsections_via_symbols
