	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_role
_set_role:                              ## @set_role
	.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	%esi, %r14d
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_nv_alloc
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_nv_add_string
	movq	_HASTCTL_CMD_SETROLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_nv_add_uint8
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nv_add_uint8
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_hastctl
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_nv_free
	movl	$-1, %eax
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	movq	-32(%rbp), %rdi
	callq	_nv_free
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resource%d"

	.comm	_HASTCTL_CMD_SETROLE,4,2        ## @HASTCTL_CMD_SETROLE
L_.str.1:                               ## @.str.1
	.asciz	"cmd"

L_.str.2:                               ## @.str.2
	.asciz	"role"

	.comm	_SNMP_ERR_NOERROR,4,2           ## @SNMP_ERR_NOERROR
	.no_dead_strip	_set_role
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_role
_set_role:                              ; @set_role
	.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, x1
	mov	x20, x0
	bl	_nv_alloc
	mov	x21, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	mov	w3, #0
	bl	_nv_add_string
Lloh2:
	adrp	x8, _HASTCTL_CMD_SETROLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HASTCTL_CMD_SETROLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_nv_add_uint8
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_nv_add_uint8
	add	x1, sp, #8
	mov	x0, x21
	bl	_hastctl
	mov	x19, x0
	mov	x0, x21
	bl	_nv_free
	cbz	w19, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_nv_free
Lloh9:
	adrp	x8, _SNMP_ERR_NOERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNMP_ERR_NOERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resource%d"

	.comm	_HASTCTL_CMD_SETROLE,4,2        ; @HASTCTL_CMD_SETROLE
l_.str.1:                               ; @.str.1
	.asciz	"cmd"

l_.str.2:                               ; @.str.2
	.asciz	"role"

	.comm	_SNMP_ERR_NOERROR,4,2           ; @SNMP_ERR_NOERROR
	.no_dead_strip	_set_role
.subsections_via_symbols
