	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_set_name              ## -- Begin function ifconfig_set_name
	.p2align	4, 0x90
_ifconfig_set_name:                     ## @ifconfig_set_name
	.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	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	-40(%rbp), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%rbx, -48(%rbp)
	movq	_AF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SIOCSIFNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_ifconfig_ioctlwrap
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_free
	negq	%r14
	sbbl	%r15d, %r15d
	jmp	LBB0_3
LBB0_1:
	movq	_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$-1, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OTHER,4,2                      ## @OTHER
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
	.comm	_SIOCSIFNAME,4,2                ## @SIOCSIFNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_set_name              ; -- Begin function ifconfig_set_name
	.p2align	2
_ifconfig_set_name:                     ; @ifconfig_set_name
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, x20
	bl	_strdup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [sp, #8]
	mov	x1, x21
	mov	w2, #4
	bl	_strlcpy
	str	x20, [sp]
Lloh0:
	adrp	x8, _AF_LOCAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_LOCAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SIOCSIFNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCSIFNAME@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	bl	_ifconfig_ioctlwrap
	mov	x19, x0
	mov	x0, x20
	bl	_free
	cmp	x19, #0
	csetm	w0, ne
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _OTHER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OTHER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	w0, #-1
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OTHER,4,2                      ; @OTHER
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
	.comm	_SIOCSIFNAME,4,2                ; @SIOCSIFNAME
.subsections_via_symbols
