	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snmp_pdu_create_response
_snmp_pdu_create_response:              ## @snmp_pdu_create_response
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	56(%rbx), %edi
	movl	56(%r14), %esi
	callq	_strcpy
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_SNMP_MSG_AUTODISCOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r14), %eax
	jne	LBB0_1
## %bb.2:
	movq	_SNMP_PDU_RESPONSE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SNMP_PDU_REPORT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	48(%r14), %eax
	movl	%eax, 48(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_SNMP_V3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	leaq	44(%rbx), %rdi
	leaq	44(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	40(%rbx), %rdi
	leaq	40(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_snmp_pdu_init_secparams
	movl	36(%r14), %eax
	movl	%eax, 36(%rbx)
	movl	32(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	12(%r14), %edx
	movl	%edx, 12(%rbx)
	movq	24(%rbx), %rdi
	movq	24(%r14), %rsi
	callq	_memcpy
	movl	16(%rbx), %edi
	movl	16(%r14), %esi
	movl	$4, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_MSG_AUTODISCOVER,4,2      ## @SNMP_MSG_AUTODISCOVER
	.comm	_SNMP_PDU_REPORT,4,2            ## @SNMP_PDU_REPORT
	.comm	_SNMP_PDU_RESPONSE,4,2          ## @SNMP_PDU_RESPONSE
	.comm	_SNMP_V3,8,3                    ## @SNMP_V3
	.no_dead_strip	_snmp_pdu_create_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snmp_pdu_create_response
_snmp_pdu_create_response:              ; @snmp_pdu_create_response
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w0, [x20, #56]
	ldr	w1, [x19, #56]
	bl	_strcpy
	ldr	x8, [x19]
	str	x8, [x20]
Lloh0:
	adrp	x8, _SNMP_MSG_AUTODISCOVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNMP_MSG_AUTODISCOVER@GOTPAGEOFF]
	ldr	w9, [x19, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _SNMP_PDU_RESPONSE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SNMP_PDU_RESPONSE@GOTPAGEOFF]
Lloh5:
	adrp	x11, _SNMP_PDU_REPORT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SNMP_PDU_REPORT@GOTPAGEOFF]
	tst	w8, w9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x20, #52]
	ldr	w8, [x19, #48]
	str	w8, [x20, #48]
	ldr	x8, [x19]
	str	x8, [x20]
Lloh7:
	adrp	x9, _SNMP_V3@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SNMP_V3@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x0, x20, #44
	add	x1, x19, #44
	mov	w2, #4
	bl	_memcpy
	add	x0, x20, #40
	add	x1, x19, #40
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	bl	_snmp_pdu_init_secparams
	ldr	d0, [x19, #32]
	str	d0, [x20, #32]
	ldr	w2, [x19, #12]
	str	w2, [x20, #12]
	ldr	x0, [x20, #24]
	ldr	x1, [x19, #24]
	bl	_memcpy
	ldr	w0, [x20, #16]
	ldr	w1, [x19, #16]
	mov	w2, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strlcpy
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_MSG_AUTODISCOVER,4,2      ; @SNMP_MSG_AUTODISCOVER
	.comm	_SNMP_PDU_REPORT,4,2            ; @SNMP_PDU_REPORT
	.comm	_SNMP_PDU_RESPONSE,4,2          ; @SNMP_PDU_RESPONSE
	.comm	_SNMP_V3,8,3                    ; @SNMP_V3
	.no_dead_strip	_snmp_pdu_create_response
.subsections_via_symbols
