	.file	"extr_halffloat.c_npy_half_nextafter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	npy_half_nextafter
	.type	npy_half_nextafter, @function
npy_half_nextafter:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	npy_half_isfinite@PLT
	test	eax, eax
	jne	.L2
.L4:
	mov	eax, DWORD PTR NPY_HALF_NAN[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, ebp
	call	npy_half_isnan@PLT
	test	rax, rax
	jne	.L4
	mov	esi, ebp
	mov	edi, ebx
	call	npy_half_eq_nonan@PLT
	mov	r8, rax
	mov	eax, ebx
	test	r8, r8
	jne	.L1
	mov	edi, ebx
	call	npy_half_iszero@PLT
	test	rax, rax
	je	.L5
	mov	eax, ebp
	and	eax, 32768
	add	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	test	bh, -128
	jne	.L6
	cmp	ebx, ebp
	jg	.L8
.L7:
	lea	eax, 1[rbx]
	jmp	.L1
.L6:
	test	ebp, 32768
	je	.L8
	mov	edx, ebx
	mov	eax, ebp
	and	edx, 32767
	and	eax, 32767
	cmp	edx, eax
	jbe	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	lea	eax, -1[rbx]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	npy_half_nextafter, .-npy_half_nextafter
	.comm	NPY_HALF_NAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_halffloat.c_npy_half_nextafter.c"
	.text
	.align	2
	.global	npy_half_nextafter
	.syntax unified
	.arm
	.fpu softvfp
	.type	npy_half_nextafter, %function
npy_half_nextafter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	npy_half_isfinite
	cmp	r0, #0
	bne	.L2
.L4:
	ldr	r3, .L15
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	bl	npy_half_isnan
	cmp	r0, #0
	bne	.L4
	mov	r1, r4
	mov	r0, r5
	bl	npy_half_eq_nonan
	cmp	r0, #0
	mov	r0, r5
	popne	{r4, r5, r6, pc}
	bl	npy_half_iszero
	cmp	r0, #0
	beq	.L5
	and	r0, r4, #32768
	add	r0, r0, #1
	pop	{r4, r5, r6, pc}
.L5:
	tst	r5, #32768
	bne	.L6
	cmp	r5, r4
	bgt	.L8
.L7:
	add	r0, r5, #1
	pop	{r4, r5, r6, pc}
.L6:
	tst	r4, #32768
	beq	.L8
	ldr	r2, .L15+4
	and	r3, r4, r2
	and	r2, r2, r5
	cmp	r2, r3
	bls	.L7
.L8:
	sub	r0, r5, #1
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	NPY_HALF_NAN
	.word	32767
	.size	npy_half_nextafter, .-npy_half_nextafter
	.comm	NPY_HALF_NAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
