	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_txsd_destroy
_iflib_txsd_destroy:                    ## @iflib_txsd_destroy
	.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
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	movslq	%edx, %r15
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax,%r15,8), %r14
	movl	20(%rbx), %edi
	movq	_BUS_DMASYNC_POSTWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_bus_dmamap_sync
	movl	20(%rbx), %edi
	movq	%r14, %rsi
	callq	_bus_dmamap_unload
	movl	20(%rbx), %edi
	movq	%r14, %rsi
	callq	_bus_dmamap_destroy
	movq	8(%rbx), %rax
	movq	$0, (%rax,%r15,8)
LBB0_2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax,%r15,8), %r14
	movl	16(%rbx), %edi
	movq	_BUS_DMASYNC_POSTWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_bus_dmamap_sync
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	callq	_bus_dmamap_unload
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	callq	_bus_dmamap_destroy
	movq	(%rbx), %rax
	movq	$0, (%rax,%r15,8)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ## @BUS_DMASYNC_POSTWRITE
	.no_dead_strip	_iflib_txsd_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_txsd_destroy
_iflib_txsd_destroy:                    ; @iflib_txsd_destroy
	.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	x20, x2
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x22, _BUS_DMASYNC_POSTWRITE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BUS_DMASYNC_POSTWRITE@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	sbfiz	x23, x20, #3, #32
	ldr	x21, [x8, x23]
	ldr	w0, [x19, #20]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_bus_dmamap_sync
	ldr	w0, [x19, #20]
	mov	x1, x21
	bl	_bus_dmamap_unload
	ldr	w0, [x19, #20]
	mov	x1, x21
	bl	_bus_dmamap_destroy
	ldr	x8, [x19, #8]
	str	xzr, [x8, x23]
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sbfiz	x21, x20, #3, #32
	ldr	x20, [x8, x21]
	ldr	w0, [x19, #16]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_bus_dmamap_sync
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_bus_dmamap_unload
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_bus_dmamap_destroy
	ldr	x8, [x19]
	str	xzr, [x8, x21]
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ; @BUS_DMASYNC_POSTWRITE
	.no_dead_strip	_iflib_txsd_destroy
.subsections_via_symbols
