	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_inject                    ## -- Begin function pcap_inject
	.p2align	4, 0x90
_pcap_inject:                           ## @pcap_inject
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r15
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EBUSY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$19, %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	movq	(%r12), %rax
	cmpq	%rax, (%r14)
	je	LBB0_1
LBB0_3:
	cmpl	$-1, %r13d
	je	LBB0_4
## %bb.5:
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bzero
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_pcap_fileno
	movq	_BIOCGETIF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_ioctl
	movq	_BIOCSETIF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	movl	%ebx, %edx
	callq	_ioctl
	movl	%r13d, %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_write
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_close
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/bpf%d"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,8,3                      ## @errno
	.comm	_EBUSY,8,3                      ## @EBUSY
	.comm	_BIOCGETIF,4,2                  ## @BIOCGETIF
	.comm	_BIOCSETIF,4,2                  ## @BIOCSETIF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_inject                    ; -- Begin function pcap_inject
	.p2align	2
_pcap_inject:                           ; @pcap_inject
	.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, x2
	mov	x20, x1
	mov	x22, x0
	mov	w23, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x24, l_.str@PAGE
Lloh4:
	add	x24, x24, l_.str@PAGEOFF
Lloh5:
	adrp	x25, _O_RDWR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _O_RDWR@GOTPAGEOFF]
Lloh7:
	adrp	x26, _errno@GOTPAGE
Lloh8:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh9:
	adrp	x27, _EBUSY@GOTPAGE
Lloh10:
	ldr	x27, [x27, _EBUSY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #5
	mov	w1, #19
	mov	x2, x24
	mov	x3, x23
	bl	_snprintf
	ldr	w1, [x25]
	add	x0, sp, #5
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w23, w23, #1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_1
LBB0_3:
	cmn	w21, #1
	b.eq	LBB0_5
; %bb.4:
	mov	x0, sp
	mov	w1, #4
	bl	_bzero
	mov	x0, x22
	bl	_pcap_fileno
Lloh11:
	adrp	x8, _BIOCGETIF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BIOCGETIF@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
Lloh14:
	adrp	x8, _BIOCSETIF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BIOCSETIF@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	bl	_ioctl
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_write
	mov	x19, x0
	mov	x0, x21
	bl	_close
	b	LBB0_6
LBB0_5:
	mov	w19, #-1
LBB0_6:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/bpf%d"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,8,3                      ; @errno
	.comm	_EBUSY,8,3                      ; @EBUSY
	.comm	_BIOCGETIF,4,2                  ; @BIOCGETIF
	.comm	_BIOCSETIF,4,2                  ; @BIOCSETIF
.subsections_via_symbols
