	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qup_i2c_req_dma
_qup_i2c_req_dma:                       ## @qup_i2c_req_dma
	.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, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_1
LBB0_5:
	cmpq	$0, (%rbx)
	je	LBB0_6
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dma_request_slave_channel_reason
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	$0, 16(%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_3
LBB0_6:
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dma_request_slave_channel_reason
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	8(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_qup_i2c_rel_dma
LBB0_3:
	movl	%r14d, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

L_.str.1:                               ## @.str.1
	.asciz	"\n tx channel not available"

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

L_.str.3:                               ## @.str.3
	.asciz	"\n rx channel not available"

	.no_dead_strip	_qup_i2c_req_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qup_i2c_req_dma
_qup_i2c_req_dma:                       ; @qup_i2c_req_dma
	.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	x8, [x0, #16]
	cbz	x8, LBB0_3
LBB0_1:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
LBB0_2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dma_request_slave_channel_reason
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_1
; %bb.4:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
	str	xzr, [x19, #16]
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dma_request_slave_channel_reason
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.6:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x20, x0
	str	xzr, [x19]
	mov	x0, x19
	bl	_qup_i2c_rel_dma
LBB0_7:
	mov	x0, x20
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

l_.str.1:                               ; @.str.1
	.asciz	"\n tx channel not available"

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

l_.str.3:                               ; @.str.3
	.asciz	"\n rx channel not available"

	.no_dead_strip	_qup_i2c_req_dma
.subsections_via_symbols
