	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_txsd_free
_iflib_txsd_free:                       ## @iflib_txsd_free
	.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	16(%rsi), %r14
	movslq	%edx, %r15
	cmpq	$0, (%r14,%r15,8)
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	28(%rbx), %edi
	movl	(%rax,%r15,4), %esi
	movq	_BUS_DMASYNC_POSTWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_dmamap_sync
	movl	28(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r15,4), %esi
	callq	_bus_dmamap_unload
LBB0_3:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	24(%rbx), %edi
	movl	(%rax,%r15,4), %esi
	movq	_BUS_DMASYNC_POSTWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_dmamap_sync
	movl	24(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %esi
	callq	_bus_dmamap_unload
LBB0_5:
	movq	(%r14,%r15,8), %rdi
	callq	_m_free
	movq	_tx_frees@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DBG_COUNTER_INC
	movq	$0, (%r14,%r15,8)
LBB0_6:
	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
	.comm	_tx_frees,4,2                   ## @tx_frees
	.no_dead_strip	_iflib_txsd_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_txsd_free
_iflib_txsd_free:                       ; @iflib_txsd_free
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x20, [x1, #16]
	ldr	x8, [x20, w2, sxtw #3]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x1
	sxtw	x21, w2
	ldr	x8, [x1, #8]
	lsl	x22, x21, #2
Lloh0:
	adrp	x23, _BUS_DMASYNC_POSTWRITE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BUS_DMASYNC_POSTWRITE@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #28]
	ldr	w1, [x8, x22]
	ldr	w2, [x23]
	bl	_bus_dmamap_sync
	ldr	w0, [x19, #28]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x22]
	bl	_bus_dmamap_unload
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #24]
	ldr	w1, [x8, x22]
	ldr	w2, [x23]
	bl	_bus_dmamap_sync
	ldr	w0, [x19, #24]
	ldr	x8, [x19]
	ldr	w1, [x8, x22]
	bl	_bus_dmamap_unload
LBB0_5:
	lsl	x19, x21, #3
	ldr	x0, [x20, x19]
	bl	_m_free
Lloh2:
	adrp	x8, _tx_frees@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tx_frees@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_DBG_COUNTER_INC
	str	xzr, [x20, x19]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ; @BUS_DMASYNC_POSTWRITE
	.comm	_tx_frees,4,2                   ; @tx_frees
	.no_dead_strip	_iflib_txsd_free
.subsections_via_symbols
