	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raw_sendmsg
_raw_sendmsg:                           ## @raw_sendmsg
	.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
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	(%rsi), %r15
	movq	%r15, %rdi
	callq	_raw_sk
	movq	%rax, %r14
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rcx
	movq	_AF_CAN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	addq	$8, %rax
	cmpq	$4, %rbx
	je	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rax
	cmpq	$4, %rbx
	jne	LBB0_3
LBB0_7:
	movl	(%rax), %esi
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_dev_get_by_index
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r12), %edx
	leaq	-44(%rbp), %rcx
	movl	$4, %esi
	movq	%r15, %rdi
	callq	_sock_alloc_send_skb
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%rax, %r13
	movl	$4, %esi
	movq	%rax, %rdi
	callq	_skb_put
	movl	4(%r12), %esi
	movl	$4, %edx
	movl	%eax, %edi
	callq	_memcpy_fromiovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:
	movq	%r13, %rdi
	callq	_skb_tx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_sock_tx_timestamp
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_14
## %bb.12:
	movq	%rbx, 8(%r13)
	movq	%r15, (%r13)
	movl	4(%r14), %esi
	movq	%r13, %rdi
	callq	_can_send
	movl	%eax, -44(%rbp)
	movq	%rbx, %rdi
	callq	_dev_put
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movl	$4, %eax
	jmp	LBB0_16
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_14:
	movq	%r13, %rdi
	callq	_kfree_skb
LBB0_15:
	movq	%rbx, %rdi
	callq	_dev_put
	movl	-44(%rbp), %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_CAN,8,3                     ## @AF_CAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_init_net,4,2                   ## @init_net
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.no_dead_strip	_raw_sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raw_sendmsg
_raw_sendmsg:                           ; @raw_sendmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x21, x2
	ldr	x19, [x1]
	mov	x0, x19
	bl	_raw_sk
	mov	x20, x0
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _AF_CAN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AF_CAN@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	add	x8, x8, #8
	cmp	x22, #4
	b.eq	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	mov	x8, x20
	cmp	x22, #4
	b.ne	LBB0_3
LBB0_7:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, _init_net@GOTPAGE
Lloh6:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_dev_get_by_index
	cbz	x0, LBB0_13
; %bb.8:
	mov	x22, x0
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _MSG_DONTWAIT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w2, w9, w8
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #4
	bl	_sock_alloc_send_skb
	cbz	x0, LBB0_15
; %bb.9:
	mov	x23, x0
	mov	w1, #4
	bl	_skb_put
	ldr	w1, [x21, #4]
	mov	w2, #4
	bl	_memcpy_fromiovec
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_14
; %bb.10:
	mov	x0, x23
	bl	_skb_tx
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_sock_tx_timestamp
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_14
; %bb.11:
	stp	x19, x22, [x23]
	ldr	w1, [x20, #4]
	mov	x0, x23
	bl	_can_send
	str	w0, [sp, #12]
	mov	x0, x22
	bl	_dev_put
	ldr	w0, [sp, #12]
	cbnz	w0, LBB0_5
; %bb.12:
	mov	w0, #4
	b	LBB0_5
LBB0_13:
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
	mov	x0, x23
	bl	_kfree_skb
LBB0_15:
	mov	x0, x22
	bl	_dev_put
	ldr	w0, [sp, #12]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_CAN,8,3                     ; @AF_CAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_init_net,4,2                   ; @init_net
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.no_dead_strip	_raw_sendmsg
.subsections_via_symbols
