	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_dca_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dev_is_pci
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_to_pci_dev
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_dcaid_from_pcidev
	movl	%eax, %r15d
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_3
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.4:
	movq	24(%r14), %rdx
	shlq	$2, %rcx
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rdx,%rbx,4)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rbx
	incl	%r13d
	cmpq	%rbx, %rcx
	jne	LBB0_5
LBB0_8:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	incl	%eax
	movl	%eax, (%r14)
	movq	%r12, 8(%rdx,%rbx,4)
	movl	%r15d, (%rdx,%rbx,4)
	movq	_IOAT3_DCA_GREQID_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_readw
	movq	_IOAT_DCA_GREQID_VALID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	addl	8(%r14), %eax
	addl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_writel
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IOAT3_DCA_GREQID_OFFSET,8,3    ## @IOAT3_DCA_GREQID_OFFSET
	.comm	_IOAT_DCA_GREQID_VALID,4,2      ## @IOAT_DCA_GREQID_VALID
	.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	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, x1
	bl	_dca_priv
	mov	x19, x0
	mov	x0, x20
	bl	_dev_is_pci
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_to_pci_dev
	mov	x22, x0
	bl	_dcaid_from_pcidev
	ldp	w8, w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x21, x0
	mov	w23, #0
	mov	x20, #0
	ldr	x10, [x19, #24]
	add	x10, x10, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	add	x10, x10, #16
	sub	w23, w23, #4
	cmp	x9, x20
	b.ne	LBB0_5
LBB0_7:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
	add	w8, w8, #1
	str	w8, [x19]
	str	x22, [x10]
	stur	w21, [x10, #-8]
	ldr	x8, [x19, #16]
Lloh4:
	adrp	x9, _IOAT3_DCA_GREQID_OFFSET@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IOAT3_DCA_GREQID_OFFSET@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
Lloh7:
	adrp	x8, _IOAT_DCA_GREQID_VALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IOAT_DCA_GREQID_VALID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w8, w8, w21
	ldr	w9, [x19, #8]
	add	w9, w0, w9
	sub	w1, w9, w23
	mov	x0, x8
	bl	_writel
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IOAT3_DCA_GREQID_OFFSET,8,3    ; @IOAT3_DCA_GREQID_OFFSET
	.comm	_IOAT_DCA_GREQID_VALID,4,2      ; @IOAT_DCA_GREQID_VALID
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_ioat_dca_add_requester
.subsections_via_symbols
