	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bus_dmamap_count_phys
__bus_dmamap_count_phys:                ## @_bus_dmamap_count_phys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	_nobounce_dmamap@GOTPCREL(%rip), %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, (%rsi)
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	%edx, %esi
	movl	%ecx, %edx
	movq	%rbx, %rcx
	callq	__bus_dmamap_pagesneeded
	movq	_KTR_BUSDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CTR1                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nobounce_dmamap,8,3            ## @nobounce_dmamap
	.comm	_KTR_BUSDMA,4,2                 ## @KTR_BUSDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pagesneeded= %d\n"

	.no_dead_strip	__bus_dmamap_count_phys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bus_dmamap_count_phys
__bus_dmamap_count_phys:                ; @_bus_dmamap_count_phys
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _nobounce_dmamap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nobounce_dmamap@GOTPAGEOFF]
	cmp	x1, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x1, x2
	mov	x2, x3
	mov	x3, x19
	bl	__bus_dmamap_pagesneeded
Lloh2:
	adrp	x8, _KTR_BUSDMA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KTR_BUSDMA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CTR1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_nobounce_dmamap,8,3            ; @nobounce_dmamap
	.comm	_KTR_BUSDMA,4,2                 ; @KTR_BUSDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pagesneeded= %d\n"

	.no_dead_strip	__bus_dmamap_count_phys
.subsections_via_symbols
