	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn_sendmsg
_pn_sendmsg:                            ## @pn_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	%rdx, %r12
	movl	(%rdx), %edx
	movq	_MSG_OOB@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	16(%r12), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	cmpl	$7, 4(%r12)
	ja	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EDESTADDRREQ@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%rcx, %rbx
	movq	(%r15), %rax
	movq	_AF_PHONET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	%rsi, %r14
	movq	_MAX_PHONET_HEADER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	callq	_sock_alloc_send_skb
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r13
	movq	_MAX_PHONET_HEADER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_skb_reserve
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_skb_put
	movl	8(%r12), %esi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_memcpy_fromiovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_pn_skb_send
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	jmp	LBB0_14
LBB0_8:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movl	-44(%rbp), %ebx
	jmp	LBB0_14
LBB0_12:
	movq	%r13, %rdi
	callq	_kfree_skb
	movl	-44(%rbp), %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EDESTADDRREQ,4,2               ## @EDESTADDRREQ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_PHONET,8,3                  ## @AF_PHONET
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_MAX_PHONET_HEADER,8,3          ## @MAX_PHONET_HEADER
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.no_dead_strip	_pn_sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn_sendmsg
_pn_sendmsg:                            ; @pn_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
	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:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
	mov	x22, x2
	ldr	x21, [x2, #16]
	cbz	x21, LBB0_7
; %bb.5:
	ldr	w9, [x22, #4]
	cmp	w9, #7
	b.hi	LBB0_8
; %bb.6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
Lloh7:
	adrp	x8, _EDESTADDRREQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EDESTADDRREQ@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
	ldr	x9, [x21]
Lloh9:
	adrp	x10, _AF_PHONET@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AF_PHONET@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.9:
	mov	x19, x3
	mov	x20, x1
Lloh12:
	adrp	x24, _MAX_PHONET_HEADER@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MAX_PHONET_HEADER@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x3
Lloh14:
	adrp	x9, _MSG_DONTWAIT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w2, w9, w8
	add	x3, sp, #12
	mov	x0, x20
	bl	_sock_alloc_send_skb
	cbz	x0, LBB0_13
; %bb.10:
	mov	x23, x0
	ldr	x1, [x24]
	bl	_skb_reserve
	mov	x0, x23
	mov	x1, x19
	bl	_skb_put
	ldr	w1, [x22, #8]
	mov	x2, x19
	bl	_memcpy_fromiovec
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_14
; %bb.11:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_pn_skb_send
	cmp	w0, #0
	csel	w0, w0, w19, lt
	b	LBB0_3
LBB0_12:
Lloh17:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
	ldr	w0, [sp, #12]
	b	LBB0_3
LBB0_14:
	mov	x0, x23
	bl	_kfree_skb
	ldr	w0, [sp, #12]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EDESTADDRREQ,4,2               ; @EDESTADDRREQ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_PHONET,8,3                  ; @AF_PHONET
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_MAX_PHONET_HEADER,8,3          ; @MAX_PHONET_HEADER
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.no_dead_strip	_pn_sendmsg
.subsections_via_symbols
