	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_scalar_set_b32
_secp256k1_scalar_set_b32:              ## @secp256k1_scalar_set_b32
	.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	%rdx, %r14
	movq	%rdi, %rbx
	movl	28(%rsi), %ecx
	bswapl	%ecx
	movq	(%rdi), %rax
	movl	%ecx, (%rax)
	movl	24(%rsi), %ecx
	bswapl	%ecx
	movl	%ecx, 4(%rax)
	movl	20(%rsi), %ecx
	bswapl	%ecx
	movl	%ecx, 8(%rax)
	movl	16(%rsi), %ecx
	bswapl	%ecx
	movl	%ecx, 12(%rax)
	movl	12(%rsi), %ecx
	bswapl	%ecx
	movl	%ecx, 16(%rax)
	movl	8(%rsi), %ecx
	bswapl	%ecx
	movl	%ecx, 20(%rax)
	movl	4(%rsi), %ecx
	bswapl	%ecx
	movl	%ecx, 24(%rax)
	movl	(%rsi), %ecx
	bswapl	%ecx
	movl	%ecx, 28(%rax)
	callq	_secp256k1_scalar_check_overflow
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_secp256k1_scalar_reduce
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	%eax, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_secp256k1_scalar_set_b32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_scalar_set_b32
_secp256k1_scalar_set_b32:              ; @secp256k1_scalar_set_b32
	.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	x19, x2
	mov	x20, x0
	ldr	w8, [x1, #28]
	rev	w8, w8
	ldr	x9, [x0]
	str	w8, [x9]
	ldr	w8, [x1, #24]
	rev	w8, w8
	str	w8, [x9, #4]
	ldr	w8, [x1, #20]
	rev	w8, w8
	str	w8, [x9, #8]
	ldr	w8, [x1, #16]
	rev	w8, w8
	str	w8, [x9, #12]
	ldr	w8, [x1, #12]
	rev	w8, w8
	str	w8, [x9, #16]
	ldr	w8, [x1, #8]
	rev	w8, w8
	str	w8, [x9, #20]
	ldr	w8, [x1, #4]
	rev	w8, w8
	str	w8, [x9, #24]
	ldr	w8, [x1]
	rev	w8, w8
	str	w8, [x9, #28]
	bl	_secp256k1_scalar_check_overflow
	mov	x1, x0
	mov	x0, x20
	bl	_secp256k1_scalar_reduce
	cbz	x19, LBB0_2
; %bb.1:
	str	w0, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_secp256k1_scalar_set_b32
.subsections_via_symbols
