	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioat_dca_add_requester
_ioat_dca_add_requester:                ## @ioat_dca_add_requester
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_dca_priv
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpq	_pci_bus_type@GOTPCREL(%rip), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_to_pci_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_dcaid_from_pcidev
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	cmpl	%edx, %ecx
	jne	LBB0_3
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%edx, %edx
	jle	LBB0_8
## %bb.4:
	movq	16(%r14), %rsi
	shlq	$2, %rdx
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rsi,%rbx,4)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rbx
	incl	%r12d
	cmpq	%rbx, %rdx
	jne	LBB0_5
LBB0_8:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	incl	%ecx
	movl	%ecx, (%r14)
	movq	%r15, 8(%rsi,%rbx,4)
	movl	%eax, (%rsi,%rbx,4)
	andl	$-4, %ebx
	movq	8(%r14), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_writew
	movq	8(%r14), %rax
	leaq	(%rax,%rbx), %rsi
	addq	$2, %rsi
	xorl	%edi, %edi
	callq	_writeb
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_bus_type,4,2               ## @pci_bus_type
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_ioat_dca_add_requester
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioat_dca_add_requester
_ioat_dca_add_requester:                ; @ioat_dca_add_requester
	.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	x20, x1
	bl	_dca_priv
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _pci_bus_type@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pci_bus_type@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_to_pci_dev
	mov	x21, x0
	bl	_dcaid_from_pcidev
	ldp	w8, w11, [x19]
	cmp	w8, w11
	b.ne	LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
	cmp	w11, #1
	b.lt	LBB0_9
; %bb.6:
	mov	w20, #0
	mov	x9, #0
	ldr	x10, [x19, #16]
	add	x10, x10, #8
	lsl	x11, x11, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cbz	x12, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x9, x9, #4
	add	x10, x10, #16
	add	w20, w20, #1
	cmn	x11, x9
	b.ne	LBB0_7
LBB0_9:
Lloh4:
	adrp	x8, _EFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
	add	w8, w8, #1
	str	w8, [x19]
	str	x21, [x10]
	stur	w0, [x10, #-8]
	ldr	x8, [x19, #8]
	neg	w9, w9
	and	x21, x9, #0xfffffffc
	add	x1, x8, x21
	bl	_writew
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	add	x1, x8, #2
	mov	w0, #0
	bl	_writeb
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_bus_type,4,2               ; @pci_bus_type
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_ioat_dca_add_requester
.subsections_via_symbols
