	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_imx_dma_request
_i2c_imx_dma_request:                   ## @i2c_imx_dma_request
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dma_request_chan
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_15
## %bb.3:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_15
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_15
LBB0_5:
	movq	_IMX_I2C_I2DR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	cltq
	addq	%r12, %rax
	movq	%rax, -48(%rbp)
	movq	_DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)
	movl	$1, -88(%rbp)
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	(%rbx), %rdi
	leaq	-88(%rbp), %rsi
	callq	_dmaengine_slave_config
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dma_request_chan
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_14
## %bb.10:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_14
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_14:
	movq	(%rbx), %rdi
	callq	_dma_release_channel
LBB0_15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_kfree
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_IMX_I2C_I2DR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	cltq
	addq	%rax, %r12
	movq	%r12, -64(%rbp)
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movl	$1, -84(%rbp)
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	8(%rbx), %rdi
	leaq	-88(%rbp), %rsi
	callq	_dmaengine_slave_config
	testl	%eax, %eax
	js	LBB0_13
## %bb.17:
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_init_completion
	movq	(%rbx), %rdi
	callq	_dma_chan_name
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	callq	_dma_chan_name
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_info
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	8(%rbx), %rdi
	callq	_dma_release_channel
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"can't request DMA tx channel (%d)\n"

	.comm	_IMX_I2C_I2DR,4,2               ## @IMX_I2C_I2DR
	.comm	_DMA_SLAVE_BUSWIDTH_1_BYTE,8,3  ## @DMA_SLAVE_BUSWIDTH_1_BYTE
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
L_.str.2:                               ## @.str.2
	.asciz	"can't configure tx channel (%d)\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"can't request DMA rx channel (%d)\n"

	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
L_.str.5:                               ## @.str.5
	.asciz	"can't configure rx channel (%d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"using %s (tx) and %s (rx) for DMA transfers\n"

	.no_dead_strip	_i2c_imx_dma_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_imx_dma_request
_i2c_imx_dma_request:                   ; @i2c_imx_dma_request
	.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, x1
	mov	x21, x0
	add	x19, x0, #16
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dma_request_chan
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20]
	bl	_PTR_ERR
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.3:
	mov	x2, x0
Lloh8:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_5:
Lloh13:
	adrp	x23, _IMX_I2C_I2DR@GOTPAGE
Lloh14:
	ldr	x23, [x23, _IMX_I2C_I2DR@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	x9, [x21, #8]
	ldr	w9, [x9]
	lsl	w8, w8, w9
	add	x8, x22, w8, sxtw
Lloh15:
	adrp	x24, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGE
Lloh16:
	ldr	x24, [x24, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGEOFF]
	ldr	x9, [x24]
	stp	x9, x8, [sp, #32]
	mov	w8, #1
Lloh17:
	adrp	x9, _DMA_MEM_TO_DEV@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w8, [sp]
	str	w9, [sp, #8]
	ldr	x0, [x20]
	mov	x1, sp
	bl	_dmaengine_slave_config
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dma_request_chan
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.7:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.8:
	mov	x2, x0
Lloh25:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.9:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x2, x0
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	ldr	x0, [x20]
	bl	_dma_release_channel
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_kfree
LBB0_14:
	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_15:
	ldr	w8, [x23]
	ldr	x9, [x21, #8]
	ldr	w9, [x9]
	lsl	w8, w8, w9
	add	x8, x22, w8, sxtw
	ldr	x9, [x24]
	stp	x9, x8, [sp, #16]
	mov	w8, #1
Lloh32:
	adrp	x9, _DMA_DEV_TO_MEM@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #4]
	ldr	x0, [x20, #8]
	mov	x1, sp
	bl	_dmaengine_slave_config
	tbnz	w0, #31, LBB0_17
; %bb.16:
	str	x20, [x21]
	add	x0, x20, #16
	bl	_init_completion
	ldr	x0, [x20]
	bl	_dma_chan_name
	mov	x21, x0
	ldr	x0, [x20, #8]
	bl	_dma_chan_name
	mov	x3, x0
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_info
	b	LBB0_14
LBB0_17:
	mov	x2, x0
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #8]
	bl	_dma_release_channel
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"can't request DMA tx channel (%d)\n"

	.comm	_IMX_I2C_I2DR,4,2               ; @IMX_I2C_I2DR
	.comm	_DMA_SLAVE_BUSWIDTH_1_BYTE,8,3  ; @DMA_SLAVE_BUSWIDTH_1_BYTE
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
l_.str.2:                               ; @.str.2
	.asciz	"can't configure tx channel (%d)\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"can't request DMA rx channel (%d)\n"

	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
l_.str.5:                               ; @.str.5
	.asciz	"can't configure rx channel (%d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"using %s (tx) and %s (rx) for DMA transfers\n"

	.no_dead_strip	_i2c_imx_dma_request
.subsections_via_symbols
