	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	(%rdx), %esi
	movq	_MSG_OOB@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_16
LBB0_2:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%r14, %rdi
	callq	_lock_sock
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_sock_net
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_dev_get_by_index
	jmp	LBB0_5
LBB0_3:
	movq	_ARPHRD_IEEE802154@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_dev_getfirstbyhwtype
LBB0_5:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_release_sock
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %r13d
	movq	8(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	cmpq	%r15, %r13
	jae	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_16
LBB0_9:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_LL_ALLOCATED_SPACE
	leaq	(%rax,%r15), %rsi
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r12), %edx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	callq	_sock_alloc_send_skb
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_LL_RESERVED_SPACE
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_skb_reserve
	movq	%r13, %rdi
	callq	_skb_reset_mac_header
	movq	%r13, %rdi
	callq	_skb_reset_network_header
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_skb_put
	movl	4(%r12), %esi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_memcpy_fromiovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:
	movq	%rbx, 16(%r13)
	movq	%r14, 8(%r13)
	movq	_ETH_P_IEEE802154@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%r13)
	movq	%rbx, %rdi
	callq	_dev_put
	movq	%r13, %rdi
	callq	_dev_queue_xmit
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jle	LBB0_13
## %bb.12:
	movl	%eax, %edi
	callq	_net_xmit_errno
LBB0_13:
	testl	%eax, %eax
	cmovnel	%eax, %r15d
	jmp	LBB0_16
LBB0_14:
	movq	%r13, %rdi
	callq	_kfree_skb
LBB0_15:
	movq	%rbx, %rdi
	callq	_dev_put
	movl	-44(%rbp), %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msg->msg_flags = 0x%x\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ARPHRD_IEEE802154,4,2          ## @ARPHRD_IEEE802154
L_.str.1:                               ## @.str.1
	.asciz	"no dev\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"name = %s, mtu = %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"size = %Zu, mtu = %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_ETH_P_IEEE802154,4,2           ## @ETH_P_IEEE802154
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w8, [x2]
Lloh0:
	adrp	x9, _MSG_OOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSG_OOB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x0, x1
	bl	_lock_sock
	ldr	w21, [x20]
	mov	x0, x20
	bl	_sock_net
	cbz	w21, LBB0_6
; %bb.5:
	ldr	w1, [x20]
	bl	_dev_get_by_index
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _ARPHRD_IEEE802154@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARPHRD_IEEE802154@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_dev_getfirstbyhwtype
LBB0_7:
	mov	x21, x0
	mov	x0, x20
	bl	_release_sock
	cbz	x21, LBB0_10
; %bb.8:
	ldr	w23, [x21]
	ldr	x8, [x21, #8]
	stp	x8, x23, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	cmp	x23, x19
	b.hs	LBB0_11
; %bb.9:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	stp	x19, x23, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #28]
	b	LBB0_17
LBB0_10:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	mov	x0, x21
	bl	_LL_ALLOCATED_SPACE
	add	x1, x0, x19
	ldr	w8, [x22]
Lloh21:
	adrp	x9, _MSG_DONTWAIT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w2, w9, w8
	add	x3, sp, #28
	mov	x0, x20
	bl	_sock_alloc_send_skb
	cbz	x0, LBB0_17
; %bb.12:
	mov	x23, x0
	mov	x0, x21
	bl	_LL_RESERVED_SPACE
	mov	x1, x0
	mov	x0, x23
	bl	_skb_reserve
	mov	x0, x23
	bl	_skb_reset_mac_header
	mov	x0, x23
	bl	_skb_reset_network_header
	mov	x0, x23
	mov	x1, x19
	bl	_skb_put
	ldr	w1, [x22, #4]
	mov	x2, x19
	bl	_memcpy_fromiovec
	str	w0, [sp, #28]
	tbnz	w0, #31, LBB0_16
; %bb.13:
	stp	x20, x21, [x23, #8]
Lloh24:
	adrp	x8, _ETH_P_IEEE802154@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETH_P_IEEE802154@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x23]
	mov	x0, x21
	bl	_dev_put
	mov	x0, x23
	bl	_dev_queue_xmit
	str	w0, [sp, #28]
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.14:
	bl	_net_xmit_errno
LBB0_15:
	cmp	w0, #0
	csel	w0, w19, w0, eq
	b	LBB0_3
LBB0_16:
	mov	x0, x23
	bl	_kfree_skb
LBB0_17:
	mov	x0, x21
	bl	_dev_put
	ldr	w0, [sp, #28]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msg->msg_flags = 0x%x\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ARPHRD_IEEE802154,4,2          ; @ARPHRD_IEEE802154
l_.str.1:                               ; @.str.1
	.asciz	"no dev\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"name = %s, mtu = %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"size = %Zu, mtu = %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_ETH_P_IEEE802154,4,2           ; @ETH_P_IEEE802154
	.no_dead_strip	_raw_sendmsg
.subsections_via_symbols
