	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snmp_oct2inetaddr
_snmp_oct2inetaddr:                     ## @snmp_oct2inetaddr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	_MAX_OCTSTRING_LEN@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jl	LBB0_10
## %bb.3:
	movq	%rdx, %rbx
	cmpl	$16, %edi
	je	LBB0_6
## %bb.4:
	cmpl	$4, %edi
	jne	LBB0_9
## %bb.5:
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_AF_INET@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	leaq	-32(%rbp), %r14
	movl	$8, %edx
	callq	_memcpy
	movq	_AF_INET6@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	movq	_SNMP_INADDRS_STRSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_inet_ntop
	movq	%rax, %rcx
	movq	%rbx, %rax
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_OCTSTRING_LEN,4,2          ## @MAX_OCTSTRING_LEN
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_SNMP_INADDRS_STRSZ,4,2         ## @SNMP_INADDRS_STRSZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inet_ntop failed"

	.no_dead_strip	_snmp_oct2inetaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snmp_oct2inetaddr
_snmp_oct2inetaddr:                     ; @snmp_oct2inetaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x0
	mov	x0, #0
	cbz	x2, LBB0_10
; %bb.1:
	cbz	x1, LBB0_10
; %bb.2:
Lloh0:
	adrp	x9, _MAX_OCTSTRING_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_OCTSTRING_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.lt	LBB0_10
; %bb.3:
	mov	x19, x2
	cmp	w8, #16
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #4
	b.ne	LBB0_9
; %bb.5:
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	mov	x20, sp
	mov	w2, #8
	bl	_memcpy
Lloh5:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _SNMP_INADDRS_STRSZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNMP_INADDRS_STRSZ@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_inet_ntop
	mov	x8, x0
	mov	x0, x19
	cbnz	x8, LBB0_10
; %bb.8:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_OCTSTRING_LEN,4,2          ; @MAX_OCTSTRING_LEN
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_SNMP_INADDRS_STRSZ,4,2         ; @SNMP_INADDRS_STRSZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inet_ntop failed"

	.no_dead_strip	_snmp_oct2inetaddr
.subsections_via_symbols
