	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netcp_txpipe_open              ## -- Begin function netcp_txpipe_open
	.p2align	4, 0x90
_netcp_txpipe_open:                     ## @netcp_txpipe_open
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	movq	$0, -112(%rbp)
	movq	_DMA_PRIO_MED_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_knav_dma_open_channel
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movslq	20(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %r15
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdx
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	movl	$64, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movl	16(%rbx), %esi
	movq	_KNAV_QUEUE_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_knav_queue_open
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	leaq	8(%rbx), %r15
	leaq	L_.str.2(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	movq	(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	callq	_knav_dma_close_channel
LBB0_6:
	movq	$0, (%rbx)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.8:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_DMA_PRIO_MED_L,4,2             ## @DMA_PRIO_MED_L
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed opening tx chan(%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"tx-pipe-%s"

	.comm	_KNAV_QUEUE_SHARED,4,2          ## @KNAV_QUEUE_SHARED
L_.str.2:                               ## @.str.2
	.asciz	"Could not open DMA queue for channel \"%s\": %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"opened tx pipe %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netcp_txpipe_open              ; -- Begin function netcp_txpipe_open
	.p2align	2
_netcp_txpipe_open:                     ; @netcp_txpipe_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #24]
	ldr	x20, [x8]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	xzr, [sp, #8]
Lloh6:
	adrp	x9, _DMA_PRIO_MED_L@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMA_PRIO_MED_L@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	ldr	w1, [x19, #20]
	add	x2, sp, #8
	mov	x0, x20
	bl	_knav_dma_open_channel
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldrsw	x2, [x19, #20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x21, x19
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_dev_name
	mov	x3, x0
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #64
	bl	_snprintf
	ldr	w1, [x19, #16]
Lloh13:
	adrp	x8, _KNAV_QUEUE_SHARED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KNAV_QUEUE_SHARED@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x0, sp, #24
	bl	_knav_queue_open
	mov	x21, x19
	str	x0, [x21, #8]!
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
	str	xzr, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	mov	x0, x20
	bl	_dev_err
LBB0_4:
	ldr	x0, [x21]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x19]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x0, [x19]
	bl	_knav_dma_close_channel
LBB0_6:
	str	xzr, [x19]
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #24
	mov	x0, x20
	bl	_dev_dbg
	mov	w20, #0
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_DMA_PRIO_MED_L,4,2             ; @DMA_PRIO_MED_L
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed opening tx chan(%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"tx-pipe-%s"

	.comm	_KNAV_QUEUE_SHARED,4,2          ; @KNAV_QUEUE_SHARED
l_.str.2:                               ; @.str.2
	.asciz	"Could not open DMA queue for channel \"%s\": %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"opened tx pipe %s\n"

.subsections_via_symbols
