	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iface_bind
_iface_bind:                            ## @iface_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, %ebx
	movl	%edi, %r15d
	movl	$4, -44(%rbp)
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_AF_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%ebx, -64(%rbp)
	movl	%r12d, -60(%rbp)
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	$12, %edx
	callq	_bind
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.4:
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movl	%r15d, %edi
	callq	_getsockopt
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movl	-48(%rbp), %edx
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_2
## %bb.7:
	testl	%edx, %edx
	jle	LBB0_8
## %bb.9:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_10
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_3
LBB0_2:
	movq	_PCAP_ERROR_IFACE_NOT_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_5:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
LBB0_10:
	movq	%r14, %rdi
	callq	_pcap_fmt_errmsg_for_errno
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_pcap_fmt_errmsg_for_errno
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_8:
	movl	$1, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_PACKET,4,2                  ## @AF_PACKET
	.comm	_errno,4,2                      ## @errno
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.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	"bind"

	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"getsockopt"

	.no_dead_strip	_iface_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iface_bind
_iface_bind:                            ; @iface_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	w8, #4
	str	w8, [sp, #8]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _AF_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w21, w8, [sp, #20]
	str	w22, [sp, #16]
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #12
	bl	_bind
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SO_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SO_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	bl	_getsockopt
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	ldr	w2, [sp, #12]
Lloh9:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w2, w8
	b.eq	LBB0_6
; %bb.3:
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.4:
Lloh12:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_9
LBB0_6:
Lloh23:
	adrp	x8, _PCAP_ERROR_IFACE_NOT_UP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PCAP_ERROR_IFACE_NOT_UP@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_7:
Lloh26:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x3, l_.str.1@PAGE
Lloh33:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_pcap_fmt_errmsg_for_errno
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh34:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x3, l_.str@PAGE
Lloh38:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pcap_fmt_errmsg_for_errno
Lloh39:
	adrp	x8, _PCAP_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PCAP_ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_PACKET,4,2                  ; @AF_PACKET
	.comm	_errno,4,2                      ; @errno
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.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	"bind"

	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"getsockopt"

	.no_dead_strip	_iface_bind
.subsections_via_symbols
