	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_snmpd_engine               ## -- Begin function set_snmpd_engine
	.p2align	4, 0x90
_set_snmpd_engine:                      ## @set_snmpd_engine
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SNMP_ENGINE_ID_SIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	(%r15,%r15), %ebx
	addl	$2, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_engine_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$-1, %eax
	cmpb	$0, (%rcx)
	je	LBB0_15
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_snmpd_engine@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%r12,4), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_sprintf
	cltq
	addq	%rax, %rbx
	incq	%r12
	cmpq	(%r14), %r12
	jb	LBB0_3
LBB0_4:
	movw	$10, (%rbx)
	movq	_engine_file@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r13
	addl	%r15d, %r15d
	orl	$1, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	16(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_fscanf
	testq	%rax, %rax
	jle	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	callq	_fclose
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	$1, 16(%r14)
	jmp	LBB0_13
LBB0_7:
	movq	%r13, %rdi
	callq	_fclose
	jmp	LBB0_13
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.11:
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_12:
	incl	16(%r14)
LBB0_13:
	movq	(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	movl	$-1, %eax
	je	LBB0_15
## %bb.14:
	movl	16(%r14), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_fclose
	xorl	%eax, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_ENGINE_ID_SIZ,4,2         ## @SNMP_ENGINE_ID_SIZ
	.comm	_engine_file,8,3                ## @engine_file
	.comm	_snmpd_engine,24,3              ## @snmpd_engine
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.2x"

L_.str.1:                               ## @.str.1
	.asciz	"r+"

L_.str.2:                               ## @.str.2
	.asciz	"%u"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"w+"

L_.str.4:                               ## @.str.4
	.asciz	"%s%u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_snmpd_engine               ; -- Begin function set_snmpd_engine
	.p2align	2
_set_snmpd_engine:                      ; @set_snmpd_engine
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _SNMP_ENGINE_ID_SIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNMP_ENGINE_ID_SIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w25, w8, #1
	add	w8, w25, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x19, x8, x12
	mov	sp, x19
Lloh10:
	adrp	x24, _engine_file@GOTPAGE
Lloh11:
	ldr	x24, [x24, _engine_file@GOTPAGEOFF]
	ldr	x8, [x24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_15
; %bb.1:
Lloh12:
	adrp	x23, _snmpd_engine@GOTPAGE
Lloh13:
	ldr	x23, [x23, _snmpd_engine@GOTPAGEOFF]
	ldr	x8, [x23]
	mov	x21, x19
	cbz	x8, LBB0_4
; %bb.2:
	mov	x26, #0
Lloh14:
	adrp	x22, l_.str@PAGE
Lloh15:
	add	x22, x22, l_.str@PAGEOFF
	mov	x21, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	w2, [x8, x26, lsl #2]
	mov	x0, x21
	mov	x1, x22
	bl	_sprintf
	add	x21, x21, w0, sxtw
	add	x26, x26, #1
	ldr	x8, [x23]
	cmp	x26, x8
	b.lo	LBB0_3
LBB0_4:
	mov	w8, #10
	strh	w8, [x21]
	ldr	x0, [x24]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	orr	w1, w25, #0x1
	mov	x0, x20
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_9
; %bb.6:
	add	x2, x23, #16
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fscanf
	cmp	x0, #0
	b.le	LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_fclose
	mov	x0, x19
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.8:
	mov	w8, #1
	b	LBB0_12
LBB0_9:
	mov	x0, x21
	bl	_fclose
	b	LBB0_13
LBB0_10:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _ENOENT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
	b	LBB0_15
LBB0_11:
	ldr	w8, [x23, #16]
	add	w8, w8, #1
LBB0_12:
	str	w8, [x23, #16]
LBB0_13:
	ldr	x0, [x24]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_15
; %bb.14:
	mov	x20, x0
	ldr	w3, [x23, #16]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	mov	x0, x20
	bl	_fclose
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_ENGINE_ID_SIZ,4,2         ; @SNMP_ENGINE_ID_SIZ
	.comm	_engine_file,8,3                ; @engine_file
	.comm	_snmpd_engine,24,3              ; @snmpd_engine
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.2x"

l_.str.1:                               ; @.str.1
	.asciz	"r+"

l_.str.2:                               ; @.str.2
	.asciz	"%u"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"w+"

l_.str.4:                               ; @.str.4
	.asciz	"%s%u\n"

.subsections_via_symbols
