	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_string_get_max                 ## -- Begin function string_get_max
	.p2align	4, 0x90
_string_get_max:                        ## @string_get_max
	.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
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rbx
	movq	%rsi, %r14
	cmpl	$-1, %edx
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %edx
LBB0_4:
	movslq	%edx, %rax
	cmpq	%rbx, %rax
	cmoval	%ebx, %eax
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, 8(%r15)
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	jmp	LBB0_7
LBB0_1:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
LBB0_7:
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	$0, 8(%r15)
	movq	_SNMP_ERR_RES_UNAVAIL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_ERR_NOERROR,4,2           ## @SNMP_ERR_NOERROR
	.comm	_SNMP_ERR_RES_UNAVAIL,4,2       ## @SNMP_ERR_RES_UNAVAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_string_get_max                 ; -- Begin function string_get_max
	.p2align	2
_string_get_max:                        ; @string_get_max
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x0
	cbz	x1, LBB0_5
; %bb.1:
	mov	x21, x3
	mov	x20, x1
	cmn	w2, #1
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
LBB0_3:
	sxtw	x8, w2
	cmp	x8, x21
	csel	w8, w21, w2, hi
	sxtw	x21, w8
	mov	x0, x21
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.4:
	str	x21, [x19, #8]
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	b	LBB0_6
LBB0_5:
	stp	xzr, xzr, [x19]
LBB0_6:
Lloh0:
	adrp	x8, _SNMP_ERR_NOERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNMP_ERR_NOERROR@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	str	xzr, [x19, #8]
Lloh2:
	adrp	x8, _SNMP_ERR_RES_UNAVAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNMP_ERR_RES_UNAVAIL@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_ERR_NOERROR,4,2           ; @SNMP_ERR_NOERROR
	.comm	_SNMP_ERR_RES_UNAVAIL,4,2       ; @SNMP_ERR_RES_UNAVAIL
.subsections_via_symbols
