	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx23885_does_need_dma_reset
_cx23885_does_need_dma_reset:           ## @cx23885_does_need_dma_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_dma_reset_workaround@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_9
## %bb.2:
	movq	_broken_dev_id@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,8), %esi
	movl	4(%rax,%rbx,8), %edi
	xorl	%edx, %edx
	callq	_pci_get_device
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	%rax, %rdi
	callq	_pci_dev_put
LBB0_9:
	movl	$1, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dma_reset_workaround,4,2       ## @dma_reset_workaround
	.comm	_broken_dev_id,8,3              ## @broken_dev_id
	.no_dead_strip	_cx23885_does_need_dma_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx23885_does_need_dma_reset
_cx23885_does_need_dma_reset:           ; @cx23885_does_need_dma_reset
	.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
Lloh0:
	adrp	x8, _dma_reset_workaround@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dma_reset_workaround@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w0, LBB0_9
; %bb.1:
	cmp	w0, #2
	b.eq	LBB0_8
; %bb.2:
Lloh3:
	adrp	x19, _broken_dev_id@GOTPAGE
Lloh4:
	ldr	x19, [x19, _broken_dev_id@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x20, #0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x20
	ldp	w1, w0, [x8]
	mov	x2, #0
	bl	_pci_get_device
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	add	x20, x20, #8
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	bl	_pci_dev_put
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dma_reset_workaround,4,2       ; @dma_reset_workaround
	.comm	_broken_dev_id,8,3              ; @broken_dev_id
	.no_dead_strip	_cx23885_does_need_dma_reset
.subsections_via_symbols
