	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_async_tx_submit                ## -- Begin function async_tx_submit
	.p2align	4, 0x90
_async_tx_submit:                       ## @async_tx_submit
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	16(%rdx), %rbx
	movl	8(%rdx), %eax
	movl	%eax, 44(%rsi)
	movl	4(%rdx), %eax
	movl	%eax, 40(%rsi)
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	movq	%rbx, %rdi
	callq	_async_tx_test_ack
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 32(%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	setne	%dil
LBB0_4:
	callq	_BUG_ON
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	cmpq	$0, 8(%rbx)
	movq	24(%rbx), %rax
	je	LBB0_7
## %bb.5:
	cmpq	%r12, %rax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, 8(%r14)
	movq	%r14, 32(%rbx)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_11
LBB0_7:
	cmpq	%r12, %rax
	je	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_async_tx_channel_switch
	jmp	LBB0_11
LBB0_9:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
LBB0_10:
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	*(%r14)
LBB0_11:
	movq	_ASYNC_TX_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_async_tx_ack
LBB0_13:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.15:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_async_tx_ack                   ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASYNC_TX_ACK,4,2               ## @ASYNC_TX_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_async_tx_submit                ; -- Begin function async_tx_submit
	.p2align	2
_async_tx_submit:                       ; @async_tx_submit
	.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	x21, x2
	mov	x20, x1
	ldr	x19, [x2, #16]
	ldur	d0, [x2, #4]
	str	d0, [x1, #40]
	cbz	x19, LBB0_11
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	bl	_async_tx_test_ack
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
LBB0_3:
	mov	w0, #1
LBB0_4:
	bl	_BUG_ON
	add	x23, x19, #16
	mov	x0, x23
	bl	_spin_lock_bh
	ldr	x9, [x19, #8]
	ldr	x8, [x19, #24]
	cmp	x8, x22
	cbz	x9, LBB0_7
; %bb.5:
	b.ne	LBB0_8
; %bb.6:
	str	x19, [x20, #8]
	str	x20, [x19, #32]
	mov	x0, x23
	bl	_spin_unlock_bh
	b	LBB0_12
LBB0_7:
	b.eq	LBB0_10
LBB0_8:
	mov	x0, x23
	bl	_spin_unlock_bh
	mov	x0, x19
	mov	x1, x20
	bl	_async_tx_channel_switch
	b	LBB0_12
LBB0_9:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_4
LBB0_10:
	mov	x0, x23
	bl	_spin_unlock_bh
LBB0_11:
	str	xzr, [x20, #8]
	ldr	x8, [x20]
	mov	x0, x20
	blr	x8
LBB0_12:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _ASYNC_TX_ACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASYNC_TX_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_async_tx_ack
LBB0_14:
	cbz	x19, LBB0_16
; %bb.15:
	mov	x0, x19
	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	_async_tx_ack
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ASYNC_TX_ACK,4,2               ; @ASYNC_TX_ACK
.subsections_via_symbols
