	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_can_tx
_bcm_can_tx:                            ## @bcm_can_tx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	24(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	shlq	$2, %rbx
	addq	32(%rdi), %rbx
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_dev_get_by_index
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	_CFSIZ@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	xorl	%eax, %eax
	callq	_gfp_any
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_skb_put
	movl	(%r13), %edx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	%r14, 8(%r12)
	movl	20(%r15), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_can_send
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	incl	16(%r15)
	cmpq	8(%r15), %rax
	jb	LBB0_5
## %bb.4:
	movq	$0, (%r15)
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_put                        ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init_net,4,2                   ## @init_net
	.comm	_CFSIZ,4,2                      ## @CFSIZ
	.no_dead_strip	_bcm_can_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_can_tx
_bcm_can_tx:                            ; @bcm_can_tx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w1, [x0, #24]
	cbz	w1, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0, #32]
	ldr	x23, [x0]
Lloh0:
	adrp	x0, _init_net@GOTPAGE
Lloh1:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_dev_get_by_index
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x24, _CFSIZ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CFSIZ@GOTPAGEOFF]
	ldr	w21, [x24]
	bl	_gfp_any
	mov	x1, x0
	mov	x0, x21
	bl	_alloc_skb
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	add	x22, x22, x23, lsl #2
	ldr	w1, [x24]
	bl	_skb_put
	ldr	w2, [x24]
	mov	x1, x22
	bl	_memcpy
	str	x20, [x21, #8]
	ldr	w8, [x19, #20]
	str	w8, [x21]
	mov	x0, x21
	mov	w1, #1
	bl	_can_send
	ldp	x8, x9, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	w10, [x19, #16]
	add	w10, w10, #1
	str	w10, [x19, #16]
	cmp	x8, x9
	b.lo	LBB0_5
; %bb.4:
	str	xzr, [x19]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_put
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_init_net,4,2                   ; @init_net
	.comm	_CFSIZ,4,2                      ; @CFSIZ
	.no_dead_strip	_bcm_can_tx
.subsections_via_symbols
