	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pktgen_dev_get_by_name
_pktgen_dev_get_by_name:                ## @pktgen_dev_get_by_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	5(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movb	(%r14), %al
	xorl	%ecx, %ecx
	cmpb	$64, %al
	je	LBB0_5
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.2:
	decq	%rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movb	%al, (%rsi,%rdx)
	leaq	1(%rdx), %rcx
	movzbl	1(%r14,%rdx), %eax
	cmpb	$64, %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %rbx
	movq	%rcx, %rdx
	jne	LBB0_3
LBB0_5:
	movb	$0, (%rsi,%rcx)
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_dev_get_by_name
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_init_net,4,2                   ## @init_net
	.no_dead_strip	_pktgen_dev_get_by_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pktgen_dev_get_by_name
_pktgen_dev_get_by_name:                ; @pktgen_dev_get_by_name
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	sp, sp, #16
	mov	x8, x1
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-8]
Lloh3:
	adrp	x9, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x9]
	add	w12, w13, #5
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x1fffffff0
	sub	x1, x9, x10
	mov	sp, x1
	ldrb	w9, [x8]
	cmp	w9, #64
	ccmp	w13, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x12, #0
	b	LBB0_4
LBB0_2:
	mov	x10, #0
	add	x8, x8, #1
	sub	x11, x13, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	strb	w9, [x1, x10]
	add	x12, x10, #1
	ldrb	w9, [x8, x10]
	cmp	w9, #64
	ccmp	x11, x10, #4, ne
	mov	x10, x12
	b.ne	LBB0_3
LBB0_4:
	strb	wzr, [x1, x12]
Lloh8:
	adrp	x0, _init_net@GOTPAGE
Lloh9:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_dev_get_by_name
	ldur	x8, [x29, #-8]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_init_net,4,2                   ; @init_net
	.no_dead_strip	_pktgen_dev_get_by_name
.subsections_via_symbols
