	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setifgroup
_setifgroup:                            ## @setifgroup
	.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
	movl	%edx, %r14d
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-28(%rbp), %edi
	movq	_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	callq	_strlcpy
	cmpb	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movsbl	-1(%rax,%rbx), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movl	-32(%rbp), %edi
	movq	(%r15), %rdx
	movq	%rbx, %rsi
	callq	_strlcpy
	cmpq	(%r15), %rax
	jl	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_5:
	movq	_SIOCAIFGROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%r14d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_name,8,3                       ## @name
	.comm	_IFNAMSIZ,8,3                   ## @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setifgroup: group names may not end in a digit"

L_.str.1:                               ## @.str.1
	.asciz	"setifgroup: group name too long"

	.comm	_SIOCAIFGROUP,4,2               ## @SIOCAIFGROUP
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.2:                               ## @.str.2
	.asciz	" SIOCAIFGROUP"

	.no_dead_strip	_setifgroup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setifgroup
_setifgroup:                            ; @setifgroup
	.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	x19, x2
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [sp, #12]
Lloh0:
	adrp	x8, _name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _name@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
Lloh3:
	adrp	x21, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IFNAMSIZ@GOTPAGEOFF]
	ldr	x2, [x21]
	bl	_strlcpy
	ldrb	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	ldursb	w0, [x8, #-1]
	bl	_isdigit
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	ldr	w0, [sp, #8]
	ldr	x2, [x21]
	mov	x1, x20
	bl	_strlcpy
	ldr	x8, [x21]
	cmp	x0, x8
	b.lt	LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
Lloh9:
	adrp	x8, _SIOCAIFGROUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIOCAIFGROUP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.6:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _EEXIST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_name,8,3                       ; @name
	.comm	_IFNAMSIZ,8,3                   ; @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setifgroup: group names may not end in a digit"

l_.str.1:                               ; @.str.1
	.asciz	"setifgroup: group name too long"

	.comm	_SIOCAIFGROUP,4,2               ; @SIOCAIFGROUP
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.2:                               ; @.str.2
	.asciz	" SIOCAIFGROUP"

	.no_dead_strip	_setifgroup
.subsections_via_symbols
