	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_swap
_nv_swap:                               ## @nv_swap
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_NVH_DATA
	movq	%rax, %rbx
	movq	_NV_ORDER_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	andl	(%r12), %eax
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	_NV_ORDER_HOST@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	je	LBB0_26
## %bb.2:
	movl	4(%r12), %edi
	callq	_le32toh
	movq	%rax, %rdx
	movl	%edx, 4(%r12)
	jmp	LBB0_5
LBB0_3:
	movq	_NV_ORDER_NETWORK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	je	LBB0_26
## %bb.4:
	movl	4(%r12), %edi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_htole32
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 4(%r12)
LBB0_5:
	movl	(%r15), %eax
	notl	%eax
	andl	(%r12), %eax
	movl	%eax, (%r12)
	orl	(%r13), %eax
	movl	%eax, (%r12)
	movq	_NV_TYPE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-128, %eax
	cmpl	$16, %eax
	ja	LBB0_27
## %bb.6:
	movl	$4, %r12d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movl	$8, %r12d
LBB0_9:
	testl	%edx, %edx
	jg	LBB0_10
	jmp	LBB0_26
LBB0_7:
	movl	$2, %r12d
	testl	%edx, %edx
	jle	LBB0_26
LBB0_10:
	movslq	%edx, %r13
	addq	%rbx, %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	callq	_PJDLOG_ABORT
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	%r12, %rbx
	cmpq	%r13, %rbx
	jae	LBB0_26
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$8, %r12d
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$4, %r12d
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$2, %r12d
	jne	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	callq	_le16toh
	movl	%eax, (%rbx)
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$8, %r12d
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$4, %r12d
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$2, %r12d
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	callq	_htole16
	movl	%eax, (%rbx)
	jmp	LBB0_25
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	callq	_le64toh
	movl	%eax, (%rbx)
	jmp	LBB0_25
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	callq	_le32toh
	movl	%eax, (%rbx)
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	callq	_htole64
	movl	%eax, (%rbx)
	jmp	LBB0_25
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	callq	_htole32
	movl	%eax, (%rbx)
	jmp	LBB0_25
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PJDLOG_ABORT                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_NV_ORDER_MASK,4,2              ## @NV_ORDER_MASK
	.comm	_NV_ORDER_HOST,4,2              ## @NV_ORDER_HOST
	.comm	_NV_ORDER_NETWORK,4,2           ## @NV_ORDER_NETWORK
	.comm	_NV_TYPE_MASK,4,2               ## @NV_TYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid condition"

L_.str.1:                               ## @.str.1
	.asciz	"unrecognized type"

	.no_dead_strip	_nv_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_swap
_nv_swap:                               ; @nv_swap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	bl	_NVH_DATA
	mov	x20, x0
	ldr	w8, [x21]
Lloh0:
	adrp	x23, _NV_ORDER_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NV_ORDER_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	and	w8, w9, w8
	cbz	w19, LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _NV_ORDER_HOST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NV_ORDER_HOST@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_26
; %bb.2:
	ldr	w0, [x21, #4]
	bl	_le32toh
	mov	x22, x0
	str	w22, [x21, #4]
Lloh5:
	adrp	x8, _NV_ORDER_HOST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NV_ORDER_HOST@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x9, _NV_ORDER_NETWORK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NV_ORDER_NETWORK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_26
; %bb.4:
	ldr	w22, [x21, #4]
	mov	x0, x22
	bl	_htole32
	str	w0, [x21, #4]
Lloh10:
	adrp	x8, _NV_ORDER_NETWORK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NV_ORDER_NETWORK@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x23]
	ldr	w10, [x21]
	bic	w9, w10, w9
	str	w9, [x21]
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x21]
Lloh12:
	adrp	x9, _NV_TYPE_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NV_TYPE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #16
	b.hi	LBB0_27
; %bb.6:
	mov	w23, #4
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	w23, #8
LBB0_8:
	cmp	w22, #1
	b.ge	LBB0_10
	b	LBB0_26
LBB0_9:
	mov	w23, #2
	cmp	w22, #1
	b.lt	LBB0_26
LBB0_10:
	add	x22, x20, w22, sxtw
Lloh17:
	adrp	x21, l_.str@PAGE
Lloh18:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	bl	_PJDLOG_ABORT
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x20, x20, x23
	cmp	x20, x22
	b.hs	LBB0_26
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	x23, #8
	cbz	w19, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	b.eq	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x23, #4
	b.eq	LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x23, #2
	b.ne	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x20]
	bl	_le16toh
	str	w0, [x20]
	b	LBB0_12
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	b.eq	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x23, #4
	b.eq	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x23, #2
	b.ne	LBB0_11
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x20]
	bl	_htole16
	str	w0, [x20]
	b	LBB0_12
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x20]
	bl	_le64toh
	str	w0, [x20]
	b	LBB0_12
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x20]
	bl	_le32toh
	str	w0, [x20]
	b	LBB0_12
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x20]
	bl	_htole64
	str	w0, [x20]
	b	LBB0_12
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x20]
	bl	_htole32
	str	w0, [x20]
	b	LBB0_12
LBB0_26:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_27:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PJDLOG_ABORT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_26-LBB0_7)>>2
	.byte	(LBB0_26-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_26-LBB0_7)>>2
	.byte	(LBB0_26-LBB0_7)>>2
	.byte	(LBB0_26-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
                                        ; -- End function
	.comm	_NV_ORDER_MASK,4,2              ; @NV_ORDER_MASK
	.comm	_NV_ORDER_HOST,4,2              ; @NV_ORDER_HOST
	.comm	_NV_ORDER_NETWORK,4,2           ; @NV_ORDER_NETWORK
	.comm	_NV_TYPE_MASK,4,2               ; @NV_TYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid condition"

l_.str.1:                               ; @.str.1
	.asciz	"unrecognized type"

	.no_dead_strip	_nv_swap
.subsections_via_symbols
