	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_pci_probe
_dw_pci_probe:                          ## @dw_pci_probe
	.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	%rdi, %r15
	movq	(%rsi), %r14
	callq	_pcim_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r15, %rdi
	callq	_pci_name
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_pcim_iomap_regions
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	addq	$8, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_3:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	%r15, %rdi
	callq	_pci_try_set_mwi
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	leaq	8(%r15), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_devm_kmemdup
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %rbx
	movq	%r12, 16(%rax)
	movl	4(%r15), %eax
	movl	%eax, 12(%rbx)
	movq	%r15, %rdi
	callq	_pcim_iomap_table
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	16(%r14), %eax
	movl	%eax, (%rbx)
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	callq	*(%r14)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O memory remapping failed\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dw_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_pci_probe
_dw_pci_probe:                          ; @dw_pci_probe
	.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	x19, x0
	ldr	x20, [x1]
	bl	_pcim_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_pci_name
	mov	x2, x0
	mov	x0, x19
	mov	w1, #1
	bl	_pcim_iomap_regions
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	add	x0, x19, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_3:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x19
	bl	_pci_try_set_mwi
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.4:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.5:
	add	x21, x19, #8
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #24
	bl	_devm_kmemdup
	cbz	x0, LBB0_9
; %bb.6:
	mov	x20, x0
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.7:
	mov	x22, x0
	str	x21, [x0, #16]
	ldr	w8, [x19, #4]
	str	w8, [x0, #12]
	mov	x0, x19
	bl	_pcim_iomap_table
	ldr	w8, [x0]
	str	w8, [x22, #8]
	ldr	w8, [x19]
	ldr	w9, [x20, #16]
	stp	w9, w8, [x22]
	str	x22, [x20, #8]
	ldr	x8, [x20]
	mov	x0, x22
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	b	LBB0_10
LBB0_9:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O memory remapping failed\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dw_pci_probe
.subsections_via_symbols
