	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dgram_sendmsg
_dgram_sendmsg:                         ## @dgram_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_dgram_sk
	movq	%rax, %r13
	movl	(%r12), %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
LBB0_16:
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_2:
	movq	8(%r13), %rbx
	movq	%r14, %rdi
	callq	_sock_net
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_ieee802154_get_dev
	jmp	LBB0_5
LBB0_4:
	movq	_ARPHRD_IEEE802154@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_dev_getfirstbyhwtype
LBB0_5:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movl	(%rbx), %edx
	movq	8(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_pr_debug
	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
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	%rax, %rbx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_LL_RESERVED_SPACE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_skb_reserve
	movq	%rbx, %rdi
	callq	_skb_reset_network_header
	movq	_IEEE802154_FC_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_mac_cb
	movl	%r12d, 4(%rax)
	cmpq	$0, 24(%r13)
	je	LBB0_9
## %bb.8:
	movq	_MAC_CB_FLAG_ACKREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_mac_cb
	orl	%r12d, 4(%rax)
LBB0_9:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_ieee802154_mlme_ops
	movq	%r12, %rdi
	callq	*(%rax)
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_mac_cb
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_ETH_P_IEEE802154@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%r13), %rcx
	movq	8(%r13), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %r8
	movq	%r15, %r9
	callq	_dev_hard_header
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_skb_reset_mac_header
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_skb_put
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %esi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_memcpy_fromiovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%r15, %rdx
	jae	LBB0_18
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, -44(%rbp)
LBB0_13:
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_14:
	callq	_dev_put
	movl	-44(%rbp), %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_18:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	_ETH_P_IEEE802154@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_dev_put
	movq	%rbx, %rdi
	callq	_dev_queue_xmit
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jle	LBB0_20
## %bb.19:
	movl	%eax, %edi
	callq	_net_xmit_errno
LBB0_20:
	testl	%eax, %eax
	cmovnel	%eax, %r15d
	jmp	LBB0_17
	.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"

	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_IEEE802154_FC_TYPE_DATA,4,2    ## @IEEE802154_FC_TYPE_DATA
	.comm	_MAC_CB_FLAG_ACKREQ,4,2         ## @MAC_CB_FLAG_ACKREQ
	.comm	_ETH_P_IEEE802154,4,2           ## @ETH_P_IEEE802154
L_.str.3:                               ## @.str.3
	.asciz	"size = %Zu, mtu = %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dgram_sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dgram_sendmsg
_dgram_sendmsg:                         ; @dgram_sendmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x0, x1
	bl	_dgram_sk
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _MSG_OOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSG_OOB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %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
	b	LBB0_14
LBB0_3:
	mov	x23, x0
	ldr	x21, [x0, #8]
	mov	x0, x20
	bl	_sock_net
	cbz	x21, LBB0_15
; %bb.4:
	mov	x1, x23
	bl	_ieee802154_get_dev
	mov	x21, x0
	cbz	x0, LBB0_16
LBB0_5:
	ldr	w26, [x21]
	ldr	x8, [x21, #8]
	stp	x8, x26, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, x21
	bl	_LL_ALLOCATED_SPACE
	add	x1, x0, x19
	ldr	w8, [x22]
Lloh9:
	adrp	x9, _MSG_DONTWAIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w2, w9, w8
	add	x3, sp, #28
	mov	x0, x20
	bl	_sock_alloc_send_skb
	cbz	x0, LBB0_13
; %bb.6:
	mov	x24, x0
	mov	x0, x21
	bl	_LL_RESERVED_SPACE
	mov	x1, x0
	mov	x0, x24
	bl	_skb_reserve
	mov	x0, x24
	bl	_skb_reset_network_header
Lloh12:
	adrp	x8, _IEEE802154_FC_TYPE_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE802154_FC_TYPE_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	mov	x0, x24
	bl	_mac_cb
	str	w25, [x0, #4]
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _MAC_CB_FLAG_ACKREQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAC_CB_FLAG_ACKREQ@GOTPAGEOFF]
Lloh17:
	ldr	w25, [x8]
	mov	x0, x24
	bl	_mac_cb
	ldr	w8, [x0, #4]
	orr	w8, w8, w25
	str	w8, [x0, #4]
LBB0_8:
	mov	x0, x21
	bl	_ieee802154_mlme_ops
	ldr	x8, [x0]
	mov	x0, x21
	blr	x8
	mov	x25, x0
	mov	x0, x24
	bl	_mac_cb
Lloh18:
	adrp	x27, _ETH_P_IEEE802154@GOTPAGE
Lloh19:
	ldr	x27, [x27, _ETH_P_IEEE802154@GOTPAGEOFF]
	str	w25, [x0]
	ldr	w2, [x27]
	add	x3, x23, #16
	ldr	x8, [x23, #8]
	cmp	x8, #0
	csel	x4, xzr, x23, eq
	mov	x0, x24
	mov	x1, x21
	mov	x5, x19
	bl	_dev_hard_header
	str	w0, [sp, #28]
	tbnz	w0, #31, LBB0_12
; %bb.9:
	mov	x0, x24
	bl	_skb_reset_mac_header
	mov	x0, x24
	mov	x1, x19
	bl	_skb_put
	ldr	w1, [x22, #4]
	mov	x2, x19
	bl	_memcpy_fromiovec
	str	w0, [sp, #28]
	tbnz	w0, #31, LBB0_12
; %bb.10:
	cmp	x26, x19
	b.hs	LBB0_17
; %bb.11:
	stp	x19, x26, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #28]
LBB0_12:
	mov	x0, x24
	bl	_kfree_skb
LBB0_13:
	mov	x0, x21
	bl	_dev_put
	ldr	w0, [sp, #28]
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
Lloh25:
	adrp	x8, _ARPHRD_IEEE802154@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ARPHRD_IEEE802154@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_dev_getfirstbyhwtype
	mov	x21, x0
	cbnz	x0, LBB0_5
LBB0_16:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
Lloh30:
	adrp	x8, _ENXIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
	stp	x20, x21, [x24, #8]
	ldr	w0, [x27]
	bl	_htons
	str	w0, [x24]
	mov	x0, x21
	bl	_dev_put
	mov	x0, x24
	bl	_dev_queue_xmit
	str	w0, [sp, #28]
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.18:
	bl	_net_xmit_errno
LBB0_19:
	cmp	w0, #0
	csel	w0, w19, w0, eq
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.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"

	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_IEEE802154_FC_TYPE_DATA,4,2    ; @IEEE802154_FC_TYPE_DATA
	.comm	_MAC_CB_FLAG_ACKREQ,4,2         ; @MAC_CB_FLAG_ACKREQ
	.comm	_ETH_P_IEEE802154,4,2           ; @ETH_P_IEEE802154
l_.str.3:                               ; @.str.3
	.asciz	"size = %Zu, mtu = %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dgram_sendmsg
.subsections_via_symbols
