	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_interface
_open_interface:                        ## @open_interface
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movb	$0, (%rdx)
	movl	(%rsi), %esi
	movq	_pflag@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	$0, (%rax)
	sete	%dl
	movl	$1000, %ecx                     ## imm = 0x3E8
	movq	%rbx, %r8
	callq	_pcap_open_live
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpb	$0, (%rbx)
	je	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_warning
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_error
	cmpb	$0, (%rbx)
	jne	LBB0_4
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pflag,4,2                      ## @pflag
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No such device"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_Bflag,8,3                      ## @Bflag
	.comm	_Iflag,8,3                      ## @Iflag
	.comm	_Jflag,8,3                      ## @Jflag
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ## @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ## @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR_RFMON_NOTSUP,4,2    ## @PCAP_ERROR_RFMON_NOTSUP
	.comm	_PCAP_WARNING,4,2               ## @PCAP_WARNING
	.comm	_PCAP_WARNING_PROMISC_NOTSUP,4,2 ## @PCAP_WARNING_PROMISC_NOTSUP
	.comm	_Qflag,4,2                      ## @Qflag
	.comm	_immediate_mode,8,3             ## @immediate_mode
	.comm	_jflag,4,2                      ## @jflag
	.comm	_supports_monitor_mode,4,2      ## @supports_monitor_mode
	.no_dead_strip	_open_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_interface
_open_interface:                        ; @open_interface
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	strb	wzr, [x2]
	ldr	w1, [x1]
Lloh0:
	adrp	x8, _pflag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pflag@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w2, eq
	mov	w3, #1000
	mov	x4, x19
	bl	_pcap_open_live
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldrb	w8, [x19]
	cbz	w8, LBB0_5
LBB0_2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_warning
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_error
	ldrb	w8, [x19]
	cbnz	w8, LBB0_2
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pflag,4,2                      ; @pflag
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No such device"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_Bflag,8,3                      ; @Bflag
	.comm	_Iflag,8,3                      ; @Iflag
	.comm	_Jflag,8,3                      ; @Jflag
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ; @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ; @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR_RFMON_NOTSUP,4,2    ; @PCAP_ERROR_RFMON_NOTSUP
	.comm	_PCAP_WARNING,4,2               ; @PCAP_WARNING
	.comm	_PCAP_WARNING_PROMISC_NOTSUP,4,2 ; @PCAP_WARNING_PROMISC_NOTSUP
	.comm	_Qflag,4,2                      ; @Qflag
	.comm	_immediate_mode,8,3             ; @immediate_mode
	.comm	_jflag,4,2                      ; @jflag
	.comm	_supports_monitor_mode,4,2      ; @supports_monitor_mode
	.no_dead_strip	_open_interface
.subsections_via_symbols
