	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pn_skb_send                    ## -- Begin function pn_skb_send
	.p2align	4, 0x90
_pn_skb_send:                           ## @pn_skb_send
	.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	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_pn_sk
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_pn_sockaddr_get_addr
	movq	%rax, %r13
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	(%rbx), %r12
	movq	%rbx, %rdi
	callq	_sock_net
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_dev_get_by_index
	jmp	LBB0_3
LBB0_2:
	movl	%eax, %edi
	callq	_phonet_device_get
LBB0_3:
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_phonet_address_get
	movq	%rax, %rbx
	movq	_PN_NO_ADDR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
	movq	%r12, %rdi
	callq	_dev_put
	jmp	LBB0_11
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
LBB0_11:
	movl	%r14d, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_pn_addr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %edi
	callq	_pn_obj
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pn_object
	movl	%eax, %r14d
LBB0_8:
	movq	%r15, %rdi
	callq	_pn_sockaddr_get_object
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pn_sockaddr_get_resource
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_pn_send
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_dev_put
	movl	%ebx, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_PN_NO_ADDR,8,3                 ## @PN_NO_ADDR
	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.comm	_IFF_UP,4,2                     ## @IFF_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pn_skb_send                    ; -- Begin function pn_skb_send
	.p2align	2
_pn_skb_send:                           ; @pn_skb_send
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_pn_sk
	mov	x22, x0
	mov	x0, x20
	bl	_pn_sockaddr_get_addr
	mov	x23, x0
Lloh0:
	adrp	x8, _EHOSTUNREACH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EHOSTUNREACH@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	x25, [x21]
	mov	x0, x21
	bl	_sock_net
	cbz	x25, LBB0_5
; %bb.1:
	ldr	x1, [x21]
	bl	_dev_get_by_index
	mov	x21, x0
	cbz	x0, LBB0_6
LBB0_2:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x23
	bl	_phonet_address_get
Lloh6:
	adrp	x8, _PN_NO_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PN_NO_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_kfree_skb
	mov	x0, x21
	bl	_dev_put
	b	LBB0_7
LBB0_5:
	bl	_phonet_device_get
	mov	x21, x0
	cbnz	x0, LBB0_2
LBB0_6:
	mov	x0, x19
	bl	_kfree_skb
LBB0_7:
	neg	w0, w24
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x23, x0
	ldr	w22, [x22]
	mov	x0, x22
	bl	_pn_addr
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_pn_obj
	mov	x1, x0
	mov	x0, x23
	bl	_pn_object
	mov	x22, x0
LBB0_11:
	mov	x0, x20
	bl	_pn_sockaddr_get_object
	mov	x23, x0
	mov	x0, x20
	bl	_pn_sockaddr_get_resource
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	w5, #0
	bl	_pn_send
	mov	x19, x0
	mov	x0, x21
	bl	_dev_put
	mov	x0, x19
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PN_NO_ADDR,8,3                 ; @PN_NO_ADDR
	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.comm	_IFF_UP,4,2                     ; @IFF_UP
.subsections_via_symbols
