	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpf_open_and_bind
_bpf_open_and_bind:                     ## @bpf_open_and_bind
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_bpf_open
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strncpy
	movq	_BIOCSETIF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_8
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$128, %edx
	je	LBB0_3
## %bb.4:
	cmpl	$129, %edx
	jne	LBB0_6
## %bb.5:
	movq	_PCAP_ERROR_IFACE_NOT_UP@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_3:
	movq	_PCAP_ERROR_NO_SUCH_DEVICE@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_6:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %r8
	callq	_pcap_fmt_errmsg_for_errno
	movq	_PCAP_ERROR@GOTPCREL(%rip), %r14
LBB0_7:
	movl	%ebx, %edi
	callq	_close
	movl	(%r14), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIOCSETIF,4,2                  ## @BIOCSETIF
	.comm	_errno,4,2                      ## @errno
	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ## @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_PCAP_ERROR_IFACE_NOT_UP,4,2    ## @PCAP_ERROR_IFACE_NOT_UP
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BIOCSETIF: %s"

	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.no_dead_strip	_bpf_open_and_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpf_open_and_bind
_bpf_open_and_bind:                     ; @bpf_open_and_bind
	.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	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_bpf_open
	mov	x19, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x1, x20
	mov	w2, #4
	bl	_strncpy
Lloh0:
	adrp	x8, _BIOCSETIF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIOCSETIF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w2, #129
	b.ne	LBB0_6
; %bb.4:
Lloh6:
	adrp	x20, _PCAP_ERROR_IFACE_NOT_UP@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PCAP_ERROR_IFACE_NOT_UP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x20, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x4, x20
	bl	_pcap_fmt_errmsg_for_errno
Lloh15:
	adrp	x20, _PCAP_ERROR@GOTPAGE
Lloh16:
	ldr	x20, [x20, _PCAP_ERROR@GOTPAGEOFF]
LBB0_7:
	mov	x0, x19
	bl	_close
	ldr	w19, [x20]
LBB0_8:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BIOCSETIF,4,2                  ; @BIOCSETIF
	.comm	_errno,4,2                      ; @errno
	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ; @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_PCAP_ERROR_IFACE_NOT_UP,4,2    ; @PCAP_ERROR_IFACE_NOT_UP
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BIOCSETIF: %s"

	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.no_dead_strip	_bpf_open_and_bind
.subsections_via_symbols
