	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenvif_tx_dealloc_action
_xenvif_tx_dealloc_action:              ## @xenvif_tx_dealloc_action
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PENDING_REQS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	(%r15), %rbx
	movq	8(%r15), %rax
	movq	24(%r15), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	movq	%rcx, %rbx
	cmpq	%rax, %rcx
	je	LBB0_5
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	%r14, %rcx
	cmpq	%r14, %rbx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	subq	24(%r15), %rax
	sarq	$4, %rax
	movq	_MAX_PENDING_REQS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setge	%dil
	callq	_BUG_ON
	movq	%r13, %r12
	movq	16(%r15), %r13
	leaq	1(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_pending_index
	movq	%r14, %rcx
	subq	24(%r15), %rcx
	movq	(%r13,%rax,8), %rbx
	movq	%r12, %r13
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%rcx, %rax
	sarq	%rax
	movq	%rbx, (%r13,%rax)
	movq	40(%r15), %rax
	movq	56(%r15), %rdx
	movl	(%rdx,%rbx,4), %edx
	sarq	$2, %rcx
	movl	%edx, (%rax,%rcx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_idx_to_kaddr
	movq	_GNTMAP_host_map@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	48(%r15), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_gnttab_set_unmap_op
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xenvif_grant_handle_reset
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$16, %r12
	addq	$16, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rbx
	cmpq	%rax, %rcx
	jne	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	%rcx, (%r15)
	movq	24(%r15), %rdi
	movq	%r12, %rcx
	subq	%rdi, %rcx
	testq	%rcx, %rcx
	jle	LBB0_13
## %bb.6:
	shrq	$4, %rcx
	movq	40(%r15), %rdx
	xorl	%esi, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_gnttab_unmap_refs
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movq	32(%r15), %rcx
	movl	(%rcx), %edi
	movq	%r12, %rdx
	subq	24(%r15), %rdx
	shrq	$4, %rdx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	24(%r15), %rax
	movq	%r12, %rcx
	subq	%rax, %rcx
	testq	%rcx, %rcx
	jle	LBB0_12
## %bb.8:
	movq	_GNTST_okay@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	movq	%r12, %rcx
	subq	%rax, %rcx
	sarq	$4, %rcx
	cmpq	%rbx, %rcx
	jle	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdx
	shlq	$4, %rdx
	movq	(%r12,%rdx), %r8
	cmpq	(%r14), %r8
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	32(%r15), %rax
	movl	(%rax), %edi
	movl	8(%r12,%rdx), %ecx
	movl	12(%r12,%rdx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	24(%r15), %rax
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	callq	_BUG
LBB0_13:
	movq	%r12, %rax
	subq	24(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	movq	_XEN_NETIF_RSP_OKAY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rsi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_xenvif_idx_release
	incl	%ebx
	movq	%r12, %rax
	subq	24(%r15), %rax
	sarq	$4, %rax
	cmpq	%rbx, %rax
	jg	LBB0_15
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PENDING_REQS,4,2           ## @MAX_PENDING_REQS
	.comm	_GNTMAP_host_map,4,2            ## @GNTMAP_host_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unmap fail: nr_ops %tu ret %d\n"

	.comm	_GNTST_okay,8,3                 ## @GNTST_okay
L_.str.1:                               ## @.str.1
	.asciz	" host_addr: 0x%llx handle: 0x%x status: %d\n"

	.comm	_XEN_NETIF_RSP_OKAY,4,2         ## @XEN_NETIF_RSP_OKAY
	.no_dead_strip	_xenvif_tx_dealloc_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenvif_tx_dealloc_action
_xenvif_tx_dealloc_action:              ; @xenvif_tx_dealloc_action
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x23, _MAX_PENDING_REQS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_PENDING_REQS@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x20, [x0, #24]
	ldp	x21, x8, [x0]
Lloh7:
	adrp	x24, _GNTMAP_host_map@GOTPAGE
Lloh8:
	ldr	x24, [x24, _GNTMAP_host_map@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	mov	x21, x25
	cmp	x25, x8
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x25, x8
	bl	_smp_rmb
	cmp	x21, x25
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x20
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	sub	x8, x26, x8
	ldrsw	x9, [x23]
	cmp	x9, x8, asr #4
	cset	w0, le
	bl	_BUG_ON
	ldr	x27, [x19, #16]
	add	x28, x21, #1
	mov	x0, x21
	bl	_pending_index
	ldr	x21, [x27, x0, lsl #3]
	ldr	x8, [x19, #24]
	sub	x8, x26, x8
	asr	x9, x8, #1
	str	x21, [x22, x9]
	ldr	x9, [x19, #56]
	lsl	x27, x21, #2
	ldr	w9, [x9, x27]
	ldr	x10, [x19, #40]
	asr	x8, x8, #2
	str	w9, [x10, x8]
	mov	x0, x19
	mov	x1, x21
	bl	_idx_to_kaddr
	mov	x1, x0
	ldr	w2, [x24]
	ldr	x8, [x19, #48]
	ldr	w3, [x8, x27]
	mov	x0, x20
	bl	_gnttab_set_unmap_op
	mov	x0, x19
	mov	x1, x21
	bl	_xenvif_grant_handle_reset
	add	x20, x20, #16
	add	x26, x26, #16
	mov	x21, x28
	cmp	x25, x28
	b.ne	LBB0_4
	b	LBB0_1
LBB0_5:
	str	x25, [x19]
	ldr	x0, [x19, #24]
	sub	x8, x20, x0
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.6:
	lsr	x3, x8, #4
	ldr	x2, [x19, #40]
	mov	x1, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_gnttab_unmap_refs
	cbz	w0, LBB0_13
; %bb.7:
	mov	x3, x0
	ldp	x9, x8, [x19, #24]
	ldr	w0, [x8]
	sub	x8, x20, x9
	lsr	x2, x8, #4
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_netdev_err
	ldr	x8, [x19, #24]
	sub	x9, x20, x8
	cmp	x9, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x23, #0
Lloh11:
	adrp	x24, _GNTST_okay@GOTPAGE
Lloh12:
	ldr	x24, [x24, _GNTST_okay@GOTPAGEOFF]
Lloh13:
	adrp	x21, l_.str.1@PAGE
Lloh14:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w23, w23, #1
	sub	x9, x20, x8
	cmp	x23, x9, asr #4
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x9, x23, #4
	ldr	x9, [x20, x9]
	ldr	x10, [x24]
	cmp	x9, x10
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	add	x8, x20, x23, lsl #4
	ldp	w3, w2, [x8, #8]
	str	x9, [sp, #-16]!
	mov	x1, x21
	bl	_netdev_err
	add	sp, sp, #16
	ldr	x8, [x19, #24]
	b	LBB0_9
LBB0_12:
	bl	_BUG
LBB0_13:
	ldr	x8, [x19, #24]
	sub	x8, x20, x8
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x21, #0
Lloh15:
	adrp	x23, _XEN_NETIF_RSP_OKAY@GOTPAGE
Lloh16:
	ldr	x23, [x23, _XEN_NETIF_RSP_OKAY@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22, x21, lsl #3]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_xenvif_idx_release
	add	w21, w21, #1
	ldr	x8, [x19, #24]
	sub	x8, x20, x8
	cmp	x21, x8, asr #4
	b.lt	LBB0_15
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PENDING_REQS,4,2           ; @MAX_PENDING_REQS
	.comm	_GNTMAP_host_map,4,2            ; @GNTMAP_host_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unmap fail: nr_ops %tu ret %d\n"

	.comm	_GNTST_okay,8,3                 ; @GNTST_okay
l_.str.1:                               ; @.str.1
	.asciz	" host_addr: 0x%llx handle: 0x%x status: %d\n"

	.comm	_XEN_NETIF_RSP_OKAY,4,2         ; @XEN_NETIF_RSP_OKAY
	.no_dead_strip	_xenvif_tx_dealloc_action
.subsections_via_symbols
