	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packet_getname_spkt
_packet_getname_spkt:                   ## @packet_getname_spkt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movq	_AF_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	movq	%r15, %rdi
	callq	_sock_net
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_pkt_sk
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_dev_get_by_index
	movl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	movl	(%rax), %esi
	movl	$14, %edx
	callq	_strncpy
	movq	%r15, %rdi
	callq	_dev_put
	jmp	LBB0_5
LBB0_4:
	xorl	%esi, %esi
	movl	$14, %edx
	callq	_memset
LBB0_5:
	movl	$8, (%r14)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_AF_PACKET,4,2                  ## @AF_PACKET
	.no_dead_strip	_packet_getname_spkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packet_getname_spkt
_packet_getname_spkt:                   ; @packet_getname_spkt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	w3, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
Lloh3:
	adrp	x8, _AF_PACKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_PACKET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x1, #4]
	mov	x0, x21
	bl	_sock_net
	mov	x22, x0
	mov	x0, x21
	bl	_pkt_sk
	ldr	w1, [x0]
	mov	x0, x22
	bl	_dev_get_by_index
	mov	x21, x0
	ldr	w0, [x20]
	cbz	x21, LBB0_4
; %bb.3:
	ldr	w1, [x21]
	mov	w2, #14
	bl	_strncpy
	mov	x0, x21
	bl	_dev_put
	b	LBB0_5
LBB0_4:
	mov	w1, #0
	mov	w2, #14
	bl	_memset
LBB0_5:
	mov	w0, #0
	mov	w8, #8
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_AF_PACKET,4,2                  ; @AF_PACKET
	.no_dead_strip	_packet_getname_spkt
.subsections_via_symbols
