	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_if_flags
_get_if_flags:                          ## @get_if_flags
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	(%rsi), %eax
	movq	_PCAP_IF_LOOPBACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_PCAP_IF_UP@GOTPCREL(%rip), %rcx
	movq	_PCAP_IF_RUNNING@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	jmp	LBB0_16
LBB0_2:
	movq	%rdx, %r15
	callq	_strdup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PacketOpenAdapter
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_16
## %bb.3:
	movq	$4, -48(%rbp)
	movq	_OID_GEN_HARDWARE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %r8
	callq	_oid_get_request
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:
	movq	_PCAP_IF_UP@GOTPCREL(%rip), %rcx
	movq	_PCAP_IF_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	%r12, %rcx
LBB0_8:
	orl	(%rcx), %eax
	movl	%eax, (%r12)
LBB0_9:
	movq	_OID_GEN_MEDIA_CONNECT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %r8
	callq	_oid_get_request
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movl	-36(%rbp), %eax
	cmpl	$135, %eax
	je	LBB0_11
## %bb.12:
	cmpl	$134, %eax
	jne	LBB0_15
## %bb.13:
	movq	_PCAP_IF_CONNECTION_STATUS_DISCONNECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movl	-40(%rbp), %eax
	cmpl	$136, %eax
	je	LBB0_17
## %bb.5:
	cmpl	$139, %eax
	je	LBB0_17
## %bb.6:
	cmpl	$137, %eax
	je	LBB0_7
	jmp	LBB0_9
LBB0_17:
	movl	(%r12), %eax
	movq	_PCAP_IF_UP@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_11:
	movq	_PCAP_IF_CONNECTION_STATUS_CONNECTED@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_15:
	movq	%r14, %rdi
	callq	_PacketCloseAdapter
LBB0_16:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_IF_LOOPBACK,4,2           ## @PCAP_IF_LOOPBACK
	.comm	_PCAP_IF_UP,4,2                 ## @PCAP_IF_UP
	.comm	_PCAP_IF_RUNNING,4,2            ## @PCAP_IF_RUNNING
	.comm	_PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE,4,2 ## @PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE
	.comm	_OID_GEN_HARDWARE_STATUS,4,2    ## @OID_GEN_HARDWARE_STATUS
	.comm	_OID_GEN_MEDIA_CONNECT_STATUS,4,2 ## @OID_GEN_MEDIA_CONNECT_STATUS
	.comm	_PCAP_IF_CONNECTION_STATUS_CONNECTED,4,2 ## @PCAP_IF_CONNECTION_STATUS_CONNECTED
	.comm	_PCAP_IF_CONNECTION_STATUS_DISCONNECTED,4,2 ## @PCAP_IF_CONNECTION_STATUS_DISCONNECTED
	.comm	_N_GEN_PHYSICAL_MEDIUM_OIDS,8,3 ## @N_GEN_PHYSICAL_MEDIUM_OIDS
	.comm	_OID_GEN_LINK_STATE,4,2         ## @OID_GEN_LINK_STATE
	.comm	_OID_GEN_PHYSICAL_MEDIUM,4,2    ## @OID_GEN_PHYSICAL_MEDIUM
	.comm	_OID_GEN_PHYSICAL_MEDIUM_EX,4,2 ## @OID_GEN_PHYSICAL_MEDIUM_EX
	.comm	_PCAP_IF_WIRELESS,4,2           ## @PCAP_IF_WIRELESS
	.no_dead_strip	_get_if_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_if_flags
_get_if_flags:                          ; @get_if_flags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _PCAP_IF_LOOPBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCAP_IF_LOOPBACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _PCAP_IF_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCAP_IF_UP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _PCAP_IF_RUNNING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCAP_IF_RUNNING@GOTPAGEOFF]
Lloh8:
	adrp	x11, _PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	str	w8, [x19]
	b	LBB0_17
LBB0_2:
	mov	x21, x2
	bl	_strdup
	mov	x22, x0
	bl	_PacketOpenAdapter
	mov	x20, x0
	mov	x0, x22
	bl	_free
	cbz	x20, LBB0_17
; %bb.3:
	mov	w8, #4
	str	x8, [sp, #8]
Lloh12:
	adrp	x8, _OID_GEN_HARDWARE_STATUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OID_GEN_HARDWARE_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #4
	add	x3, sp, #8
	mov	x0, x20
	mov	x4, x21
	bl	_oid_get_request
	cbz	w0, LBB0_10
LBB0_4:
Lloh15:
	adrp	x8, _PCAP_IF_UP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCAP_IF_UP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _PCAP_IF_RUNNING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PCAP_IF_RUNNING@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x9, x19
LBB0_5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_6:
Lloh21:
	adrp	x8, _OID_GEN_MEDIA_CONNECT_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OID_GEN_MEDIA_CONNECT_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, sp
	add	x3, sp, #8
	mov	x0, x20
	mov	x4, x21
	bl	_oid_get_request
	cbnz	w0, LBB0_16
; %bb.7:
	ldr	w8, [sp]
	cmp	w8, #135
	b.eq	LBB0_14
; %bb.8:
	cmp	w8, #134
	b.ne	LBB0_16
; %bb.9:
Lloh24:
	adrp	x8, _PCAP_IF_CONNECTION_STATUS_DISCONNECTED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCAP_IF_CONNECTION_STATUS_DISCONNECTED@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
	ldr	w8, [sp, #4]
	cmp	w8, #136
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #139
	b.eq	LBB0_13
; %bb.12:
	cmp	w8, #137
	b.eq	LBB0_4
	b	LBB0_6
LBB0_13:
	ldr	w8, [x19]
Lloh26:
	adrp	x9, _PCAP_IF_UP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PCAP_IF_UP@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
Lloh28:
	adrp	x8, _PCAP_IF_CONNECTION_STATUS_CONNECTED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PCAP_IF_CONNECTION_STATUS_CONNECTED@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_16:
	mov	x0, x20
	bl	_PacketCloseAdapter
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_IF_LOOPBACK,4,2           ; @PCAP_IF_LOOPBACK
	.comm	_PCAP_IF_UP,4,2                 ; @PCAP_IF_UP
	.comm	_PCAP_IF_RUNNING,4,2            ; @PCAP_IF_RUNNING
	.comm	_PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE,4,2 ; @PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE
	.comm	_OID_GEN_HARDWARE_STATUS,4,2    ; @OID_GEN_HARDWARE_STATUS
	.comm	_OID_GEN_MEDIA_CONNECT_STATUS,4,2 ; @OID_GEN_MEDIA_CONNECT_STATUS
	.comm	_PCAP_IF_CONNECTION_STATUS_CONNECTED,4,2 ; @PCAP_IF_CONNECTION_STATUS_CONNECTED
	.comm	_PCAP_IF_CONNECTION_STATUS_DISCONNECTED,4,2 ; @PCAP_IF_CONNECTION_STATUS_DISCONNECTED
	.comm	_N_GEN_PHYSICAL_MEDIUM_OIDS,8,3 ; @N_GEN_PHYSICAL_MEDIUM_OIDS
	.comm	_OID_GEN_LINK_STATE,4,2         ; @OID_GEN_LINK_STATE
	.comm	_OID_GEN_PHYSICAL_MEDIUM,4,2    ; @OID_GEN_PHYSICAL_MEDIUM
	.comm	_OID_GEN_PHYSICAL_MEDIUM_EX,4,2 ; @OID_GEN_PHYSICAL_MEDIUM_EX
	.comm	_PCAP_IF_WIRELESS,4,2           ; @PCAP_IF_WIRELESS
	.no_dead_strip	_get_if_flags
.subsections_via_symbols
