	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_ether_if                   ## -- Begin function set_ether_if
	.p2align	4, 0x90
_set_ether_if:                          ## @set_ether_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movq	%rdx, %r14
	movl	(%rdi), %edx
	btl	%esi, %edx
	jae	LBB0_1
## %bb.16:
	movq	_ether_if_strings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rsi
	leaq	L_.str(%rip), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fsi_error                      ## TAILCALL
LBB0_1:
	movq	%rdi, %rbx
	orl	%eax, %edx
	movl	%edx, (%rdi)
	cmpl	$128, %ecx
	je	LBB0_7
## %bb.2:
	cmpl	$130, %ecx
	je	LBB0_14
## %bb.3:
	cmpl	$129, %ecx
	jne	LBB0_13
## %bb.4:
	movq	%r14, %rdi
	callq	_inet_addr
	movq	%rax, 24(%rbx)
	movq	_INADDR_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_fsi_error
LBB0_6:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_XFREE                          ## TAILCALL
LBB0_7:
	movl	$0, -20(%rbp)
	leaq	L_.str.2(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_11
LBB0_9:
	movl	-20(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.10:
	callq	_htonl
	movl	%eax, 16(%rbx)
	jmp	LBB0_12
LBB0_14:
	movq	%r14, 8(%rbx)
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_fsi_error
LBB0_12:
	movq	%r14, %rdi
	callq	_XFREE
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netif field \"%s\" already set"

	.comm	_ether_if_strings,8,3           ## @ether_if_strings
	.comm	_INADDR_NONE,8,3                ## @INADDR_NONE
L_.str.1:                               ## @.str.1
	.asciz	"malformed IP dotted quad: %s"

L_.str.2:                               ## @.str.2
	.asciz	"0x%lx"

L_.str.3:                               ## @.str.3
	.asciz	"%lx"

L_.str.4:                               ## @.str.4
	.asciz	"malformed netmask: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_ether_if                   ; -- Begin function set_ether_if
	.p2align	2
_set_ether_if:                          ; @set_ether_if
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w8, #1
	lsl	w8, w8, w1
	ldr	w9, [x0]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ether_if_strings@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ether_if_strings@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x1, [x8, w1, sxtw #3]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fsi_error
LBB0_2:
	mov	x19, x2
	mov	x20, x0
	orr	w8, w9, w8
	str	w8, [x0]
	cmp	w1, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w1, #130
	b.eq	LBB0_12
; %bb.4:
	cmp	w1, #129
	b.ne	LBB0_16
; %bb.5:
	mov	x0, x19
	bl	_inet_addr
	str	x0, [x20, #24]
Lloh5:
	adrp	x8, _INADDR_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INADDR_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_fsi_error
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_XFREE
LBB0_8:
	str	wzr, [sp, #12]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_sscanf
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.9:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_13
LBB0_10:
	ldr	w0, [sp, #12]
	cbz	w0, LBB0_13
; %bb.11:
	bl	_htonl
	str	w0, [x20, #16]
	b	LBB0_14
LBB0_12:
	str	x19, [x20, #8]
	b	LBB0_15
LBB0_13:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_fsi_error
LBB0_14:
	mov	x0, x19
	bl	_XFREE
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_16:
	bl	_abort
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netif field \"%s\" already set"

	.comm	_ether_if_strings,8,3           ; @ether_if_strings
	.comm	_INADDR_NONE,8,3                ; @INADDR_NONE
l_.str.1:                               ; @.str.1
	.asciz	"malformed IP dotted quad: %s"

l_.str.2:                               ; @.str.2
	.asciz	"0x%lx"

l_.str.3:                               ; @.str.3
	.asciz	"%lx"

l_.str.4:                               ; @.str.4
	.asciz	"malformed netmask: %s"

.subsections_via_symbols
