	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_txd_db_check
_iflib_txd_db_check:                    ## @iflib_txd_db_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%rcx, %rsi
	callq	_TXQ_MAX_DB_DEFERRED
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, (%rbx)
	jl	LBB0_5
LBB0_2:
	movq	8(%rbx), %r15
	testq	%r15, %r15
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %r15
LBB0_4:
	movq	32(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_BUS_DMASYNC_PREREAD@GOTPCREL(%rip), %rax
	movq	_BUS_DMASYNC_PREWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_bus_dmamap_sync
	movl	(%r14), %edi
	movl	24(%rbx), %esi
	movq	%r15, %rdx
	callq	*8(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_DMASYNC_PREREAD,4,2        ## @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ## @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_iflib_txd_db_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_txd_db_check
_iflib_txd_db_check:                    ; @iflib_txd_db_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x3
	bl	_TXQ_MAX_DB_DEFERRED
	cbnz	w21, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x0
	b.ge	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	x21, [x19, #8]
	cbnz	x21, LBB0_5
; %bb.4:
	ldr	x21, [x19, #16]
LBB0_5:
	ldr	x8, [x19, #32]
Lloh0:
	adrp	x9, _BUS_DMASYNC_PREREAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUS_DMASYNC_PREREAD@GOTPAGEOFF]
	ldp	w1, w0, [x8]
Lloh2:
	ldr	w8, [x9]
Lloh3:
	adrp	x9, _BUS_DMASYNC_PREWRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BUS_DMASYNC_PREWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
	ldr	x8, [x20, #8]
	ldr	w0, [x20]
	ldr	w1, [x19, #24]
	mov	x2, x21
	blr	x8
	stp	xzr, xzr, [x19]
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_DMASYNC_PREREAD,4,2        ; @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ; @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_iflib_txd_db_check
.subsections_via_symbols
