	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_if                        ## -- Begin function host_if
	.p2align	4, 0x90
_host_if:                               ## @host_if
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_strdup
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strrchr
	testq	%rax, %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	_PFI_AFLAG_NETWORK@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	orl	(%rcx), %ebx
	movb	$0, (%r14)
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strrchr
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r14), %r15
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	movq	%r13, %rcx
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	movq	_PFI_AFLAG_BROADCAST@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	movq	_PFI_AFLAG_PEER@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	movq	_PFI_AFLAG_NOALIAS@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_13
LBB0_3:
	xorl	%ebx, %ebx
LBB0_10:
	leal	-1(%rbx), %eax
	andl	%ebx, %eax
	movq	_PFI_AFLAG_MODEMASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_12
LBB0_14:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	js	LBB0_17
## %bb.15:
	movq	_PFI_AFLAG_NETWORK@GOTPCREL(%rip), %rax
	movq	_PFI_AFLAG_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	%ebx, %ecx
	je	LBB0_17
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fprintf
LBB0_13:
	xorl	%r15d, %r15d
LBB0_23:
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r12, %rdi
	callq	_ifa_exists
	testq	%rax, %rax
	je	LBB0_18
LBB0_19:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ifa_lookup
	movq	%rax, %r15
	testl	%r14d, %r14d
	js	LBB0_23
## %bb.20:
	testq	%r15, %r15
	je	LBB0_23
## %bb.21:
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_set_ipmask
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_22
	jmp	LBB0_23
LBB0_18:
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"host_if: strdup"

L_.str.1:                               ## @.str.1
	.asciz	"network"

	.comm	_PFI_AFLAG_NETWORK,4,2          ## @PFI_AFLAG_NETWORK
L_.str.2:                               ## @.str.2
	.asciz	"broadcast"

	.comm	_PFI_AFLAG_BROADCAST,4,2        ## @PFI_AFLAG_BROADCAST
L_.str.3:                               ## @.str.3
	.asciz	"peer"

	.comm	_PFI_AFLAG_PEER,4,2             ## @PFI_AFLAG_PEER
L_.str.4:                               ## @.str.4
	.asciz	"0"

	.comm	_PFI_AFLAG_NOALIAS,4,2          ## @PFI_AFLAG_NOALIAS
	.comm	_PFI_AFLAG_MODEMASK,4,2         ## @PFI_AFLAG_MODEMASK
	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"illegal combination of interface modifiers\n"

L_.str.6:                               ## @.str.6
	.asciz	"network or broadcast lookup, but extra netmask given\n"

L_.str.7:                               ## @.str.7
	.asciz	"self"

	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_if                        ; -- Begin function host_if
	.p2align	2
_host_if:                               ; @host_if
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	bl	_strdup
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	x0, x19
	mov	w1, #58
	bl	_strrchr
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	cbz	x0, LBB0_12
; %bb.3:
	mov	x23, x0
	mov	w21, #0
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x28, _PFI_AFLAG_NETWORK@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PFI_AFLAG_NETWORK@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh8:
	adrp	x25, l_.str.3@PAGE
Lloh9:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh10:
	adrp	x20, _PFI_AFLAG_NOALIAS@GOTPAGE
Lloh11:
	ldr	x20, [x20, _PFI_AFLAG_NOALIAS@GOTPAGEOFF]
Lloh12:
	adrp	x26, l_.str.4@PAGE
Lloh13:
	add	x26, x26, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, x28
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x8]
	orr	w21, w8, w21
	strb	wzr, [x23]
	mov	x0, x19
	mov	w1, #58
	bl	_strrchr
	mov	x23, x0
	cbz	x0, LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x23, #1
	mov	x0, x27
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	mov	x1, x25
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	mov	x1, x26
	bl	_strcmp
	mov	x8, x20
	cbz	w0, LBB0_5
	b	LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh14:
	adrp	x8, _PFI_AFLAG_BROADCAST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PFI_AFLAG_BROADCAST@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh16:
	adrp	x8, _PFI_AFLAG_PEER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PFI_AFLAG_PEER@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	mov	w21, #0
LBB0_13:
	sub	w8, w21, #1
	and	w8, w8, w21
Lloh18:
	adrp	x9, _PFI_AFLAG_MODEMASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PFI_AFLAG_MODEMASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_15
; %bb.14:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_15:
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	tbnz	w20, #31, LBB0_21
; %bb.16:
Lloh23:
	adrp	x8, _PFI_AFLAG_NETWORK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PFI_AFLAG_NETWORK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _PFI_AFLAG_BROADCAST@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PFI_AFLAG_BROADCAST@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w8, w8, w21
	cbz	w8, LBB0_21
; %bb.17:
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_18:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_fprintf
LBB0_19:
	mov	x21, #0
LBB0_20:
	mov	x0, x19
	bl	_free
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	x0, x19
	bl	_ifa_exists
	cbz	x0, LBB0_26
LBB0_22:
	mov	x0, x19
	mov	x1, x21
	bl	_ifa_lookup
	mov	x21, x0
	tbnz	w20, #31, LBB0_20
; %bb.23:
	cbz	x21, LBB0_20
; %bb.24:
	mov	x22, x21
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_set_ipmask
	ldr	x22, [x22]
	cbnz	x22, LBB0_25
	b	LBB0_20
LBB0_26:
Lloh34:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_strncmp
	cbnz	w0, LBB0_19
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"host_if: strdup"

l_.str.1:                               ; @.str.1
	.asciz	"network"

	.comm	_PFI_AFLAG_NETWORK,4,2          ; @PFI_AFLAG_NETWORK
l_.str.2:                               ; @.str.2
	.asciz	"broadcast"

	.comm	_PFI_AFLAG_BROADCAST,4,2        ; @PFI_AFLAG_BROADCAST
l_.str.3:                               ; @.str.3
	.asciz	"peer"

	.comm	_PFI_AFLAG_PEER,4,2             ; @PFI_AFLAG_PEER
l_.str.4:                               ; @.str.4
	.asciz	"0"

	.comm	_PFI_AFLAG_NOALIAS,4,2          ; @PFI_AFLAG_NOALIAS
	.comm	_PFI_AFLAG_MODEMASK,4,2         ; @PFI_AFLAG_MODEMASK
	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"illegal combination of interface modifiers\n"

l_.str.6:                               ; @.str.6
	.asciz	"network or broadcast lookup, but extra netmask given\n"

l_.str.7:                               ; @.str.7
	.asciz	"self"

	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
.subsections_via_symbols
