	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sndpkt                         ## -- Begin function sndpkt
	.p2align	4, 0x90
_sndpkt:                                ## @sndpkt
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %r13d
	callq	_get_card_from_id
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_IS_VALID_CARD
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_sc_adapter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r12
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %esi
	movq	8(%rax), %rax
	movslq	%r13d, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,8), %rcx
	leaq	(%rcx,%rcx,2), %r15
	movq	16(%rax,%r15), %rdx
	movl	8(%rax,%r15), %r8d
	movl	(%rax,%r15), %ecx
	movl	4(%rax,%r15), %r9d
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_sc_adapter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r12,8), %rax
	movq	8(%rax), %rcx
	cmpl	$0, 8(%rcx,%r15)
	je	LBB0_3
## %bb.5:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %r13d
	movq	_BUFFER_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmpl	%edx, %r13d
	jle	LBB0_7
## %bb.6:
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_3:
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_7:
	movslq	(%rcx,%r15), %rbx
	imulq	%rdx, %rbx
	addq	16(%rcx,%r15), %rbx
	movq	%rbx, -96(%rbp)
	movl	%r13d, -104(%rbp)
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	movl	%r13d, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	4(%r14), %edx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%r13d, %ecx
	callq	_memcpy_toshmem
	movq	_sc_adapter@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %esi
	movq	8(%rax), %rax
	movl	(%rax,%r15), %r8d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rdi
	movl	%r13d, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_CEPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ceReqTypeLnk@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ceReqClass1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ceReqLnkWrite@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leal	1(%rbx), %r9d
	leaq	-104(%rbp), %rax
	movl	%r12d, %edi
	pushq	%rax
	pushq	$16
	callq	_sendmessage
	addq	$16, %rsp
	movslq	(%r15), %rcx
	movq	%rcx, -64(%rbp)
	movq	_sc_adapter@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	(%rcx), %esi
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	$-1, %r14d
	jmp	LBB0_10
LBB0_9:
	movq	8(%rcx), %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rdx,2), %rdx
	decl	8(%rax,%rdx,8)
	movl	(%rax,%rdx,8), %esi
	incl	%esi
	cmpl	4(%rax,%rdx,8), %esi
	movl	$0, %edi
	cmovel	%edi, %esi
	movl	%esi, (%rax,%rdx,8)
	movl	(%rcx), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	movq	_ISDN_STAT_BSENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movl	%r12d, %edi
	movl	%ebx, %edx
	callq	_indicate_status
	movl	-64(%rbp), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid param: %d is not a valid card id\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"%s: sndpkt: frst = 0x%lx nxt = %d  f = %d n = %d\n"

	.comm	_sc_adapter,8,3                 ## @sc_adapter
L_.str.2:                               ## @.str.2
	.asciz	"%s: out of TX buffers\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BUFFER_SIZE,4,2                ## @BUFFER_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"%s: data overflows buffer size (data > buffer)\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s: writing %d bytes to buffer offset 0x%lx\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s: sndpkt size=%d, buf_offset=0x%lx buf_indx=%d\n"

	.comm	_CEPID,4,2                      ## @CEPID
	.comm	_ceReqTypeLnk,4,2               ## @ceReqTypeLnk
	.comm	_ceReqClass1,4,2                ## @ceReqClass1
	.comm	_ceReqLnkWrite,4,2              ## @ceReqLnkWrite
L_.str.6:                               ## @.str.6
	.asciz	"%s: failed to send packet, status = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s: packet sent successfully\n"

	.comm	_ISDN_STAT_BSENT,4,2            ## @ISDN_STAT_BSENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sndpkt                         ; -- Begin function sndpkt
	.p2align	2
_sndpkt:                                ; @sndpkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x1
	bl	_get_card_from_id
	mov	x20, x0
	bl	_IS_VALID_CARD
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x25, _sc_adapter@GOTPAGE
Lloh1:
	ldr	x25, [x25, _sc_adapter@GOTPAGEOFF]
	ldr	x8, [x25]
	sbfiz	x22, x20, #3, #32
	ldr	x8, [x8, x22]
	ldr	w1, [x8]
	ldr	x8, [x8, #8]
	sxtw	x24, w19
	add	x9, x24, w19, sxtw #1
	lsl	x23, x9, #3
	add	x8, x8, x23
	ldr	x9, [x8, #16]
	ldr	w11, [x8]
	ldp	w8, w10, [x8, #4]
	stp	x10, x8, [sp, #16]
	stp	x9, x11, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x25]
	ldr	x8, [x8, x22]
	ldr	x9, [x8, #8]
	add	x10, x9, x23
	ldr	w10, [x10, #8]
	cbz	w10, LBB0_5
; %bb.2:
	ldr	w22, [x21]
Lloh4:
	adrp	x10, _BUFFER_SIZE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _BUFFER_SIZE@GOTPAGEOFF]
Lloh6:
	ldrsw	x10, [x10]
	cmp	w22, w10
	b.le	LBB0_9
; %bb.3:
	ldr	w1, [x8]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w1, [x8]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_pr_debug
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_9:
	sxtw	x26, w20
	add	x11, x24, x24, lsl #1
	lsl	x27, x11, #3
	add	x9, x9, x27
	ldrsw	x11, [x9]
	ldr	x9, [x9, #16]
	madd	x23, x11, x10, x9
	str	x23, [sp, #56]
	str	w22, [sp, #48]
	ldr	w1, [x8]
	stp	x22, x23, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	ldr	w2, [x21, #4]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x22
	bl	_memcpy_toshmem
	ldr	x8, [x25]
	lsl	x26, x26, #3
	ldr	x8, [x8, x26]
	ldr	w1, [x8]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x27]
	stp	x23, x8, [sp, #8]
	str	x22, [sp]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_debug
Lloh21:
	adrp	x8, _CEPID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CEPID@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _ceReqTypeLnk@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ceReqTypeLnk@GOTPAGEOFF]
Lloh26:
	adrp	x9, _ceReqClass1@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ceReqClass1@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	ldr	w3, [x9]
Lloh30:
	adrp	x8, _ceReqLnkWrite@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ceReqLnkWrite@GOTPAGEOFF]
Lloh32:
	ldr	w4, [x8]
	add	w5, w19, #1
	add	x7, sp, #48
	mov	x0, x20
	mov	w6, #16
	bl	_sendmessage
                                        ; kill: def $w0 killed $w0 def $x0
	ldrsw	x8, [x21]
	str	x8, [sp, #40]
	ldr	x8, [x25]
	ldr	x8, [x8, x26]
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_debug
	mov	w0, #-1
	b	LBB0_8
LBB0_11:
	ldr	x9, [x8, #8]
	mov	w10, #24
	madd	x9, x24, x10, x9
	ldp	w11, w10, [x9, #4]
	sub	w10, w10, #1
	str	w10, [x9, #8]
	ldr	w10, [x9]
	add	w12, w10, #1
	cmp	w12, w11
	csinc	w10, wzr, w10, eq
	str	w10, [x9]
	ldr	w1, [x8]
Lloh35:
	adrp	x0, l_.str.7@PAGE
Lloh36:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_debug
	mov	x0, x21
	bl	_dev_kfree_skb
Lloh37:
	adrp	x8, _ISDN_STAT_BSENT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ISDN_STAT_BSENT@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	add	x3, sp, #40
	mov	x0, x20
	mov	x2, x19
	bl	_indicate_status
	ldr	w0, [sp, #40]
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid param: %d is not a valid card id\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"%s: sndpkt: frst = 0x%lx nxt = %d  f = %d n = %d\n"

	.comm	_sc_adapter,8,3                 ; @sc_adapter
l_.str.2:                               ; @.str.2
	.asciz	"%s: out of TX buffers\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BUFFER_SIZE,4,2                ; @BUFFER_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"%s: data overflows buffer size (data > buffer)\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s: writing %d bytes to buffer offset 0x%lx\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s: sndpkt size=%d, buf_offset=0x%lx buf_indx=%d\n"

	.comm	_CEPID,4,2                      ; @CEPID
	.comm	_ceReqTypeLnk,4,2               ; @ceReqTypeLnk
	.comm	_ceReqClass1,4,2                ; @ceReqClass1
	.comm	_ceReqLnkWrite,4,2              ; @ceReqLnkWrite
l_.str.6:                               ; @.str.6
	.asciz	"%s: failed to send packet, status = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s: packet sent successfully\n"

	.comm	_ISDN_STAT_BSENT,4,2            ; @ISDN_STAT_BSENT
.subsections_via_symbols
