	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_pci_probe
_mlxsw_pci_probe:                       ## @mlxsw_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	%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, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_21
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_20
LBB0_6:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_19
LBB0_12:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movq	_MLXSW_PCI_BAR0_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %rsi
	callq	_ioremap
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	%r15, 48(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	movq	%r14, %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, 8(%r14)
	movq	48(%r14), %rdi
	callq	_pci_name
	movl	%eax, 32(%r14)
	movq	%r15, 24(%r14)
	movl	$1, 16(%r14)
	movq	%r12, 40(%r14)
	movq	_mlxsw_pci_bus@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mlxsw_core_bus_device_register
	testl	%eax, %eax
	je	LBB0_22
## %bb.16:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	(%r14), %edi
	callq	_iounmap
	movl	%r12d, %ebx
	jmp	LBB0_19
LBB0_17:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_18:
	subl	(%rax), %ebx
LBB0_19:
	movq	%r15, %rdi
	callq	_pci_release_regions
LBB0_20:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_21:
	movq	%r14, %rdi
	callq	_kfree
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_enable_device failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"pci_request_regions failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"pci_set_consistent_dma_mask failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"pci_set_dma_mask failed\n"

	.comm	_MLXSW_PCI_BAR0_SIZE,8,3        ## @MLXSW_PCI_BAR0_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"invalid PCI region size\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.5:                               ## @.str.5
	.asciz	"ioremap failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_mlxsw_pci_bus,4,2              ## @mlxsw_pci_bus
L_.str.6:                               ## @.str.6
	.asciz	"cannot register bus device\n"

	.no_dead_strip	_mlxsw_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_pci_probe
_mlxsw_pci_probe:                       ; @mlxsw_pci_probe
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_pci_enable_device
	cbz	w0, LBB0_4
; %bb.2:
	mov	x23, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_21
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_22
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	bl	_pci_request_regions
	cbz	w0, LBB0_6
; %bb.5:
	mov	x23, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_20
LBB0_6:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_9
; %bb.7:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_12
; %bb.8:
	mov	x23, x0
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_pci_set_consistent_dma_mask
	cbz	w0, LBB0_12
; %bb.10:
	mov	x23, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_dev_err
	b	LBB0_19
LBB0_12:
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_len
Lloh14:
	adrp	x8, _MLXSW_PCI_BAR0_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLXSW_PCI_BAR0_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_14
; %bb.13:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_start
	mov	x23, x0
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_len
	mov	x1, x0
	mov	x0, x23
	bl	_ioremap
	str	w0, [x19]
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_pci_set_master
	str	x20, [x19, #48]
	mov	x0, x20
	mov	x1, x19
	bl	_pci_set_drvdata
	mov	x23, x19
	str	x22, [x23, #8]!
	ldr	x0, [x19, #48]
	bl	_pci_name
	str	w0, [x19, #32]
	str	x20, [x19, #24]
	mov	w8, #1
	str	w8, [x19, #16]
	str	x21, [x19, #40]
Lloh21:
	adrp	x1, _mlxsw_pci_bus@GOTPAGE
Lloh22:
	ldr	x1, [x1, _mlxsw_pci_bus@GOTPAGEOFF]
	mov	x0, x23
	mov	x2, x19
	mov	w3, #0
	mov	x4, #0
	bl	_mlxsw_core_bus_device_register
	mov	x23, x0
	cbz	w0, LBB0_22
; %bb.16:
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19]
	bl	_iounmap
	b	LBB0_19
LBB0_17:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh27:
	adrp	x8, _EIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_19:
	mov	x0, x20
	bl	_pci_release_regions
LBB0_20:
	mov	x0, x20
	bl	_pci_disable_device
LBB0_21:
	mov	x0, x19
	bl	_kfree
LBB0_22:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_enable_device failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"pci_request_regions failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"pci_set_consistent_dma_mask failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"pci_set_dma_mask failed\n"

	.comm	_MLXSW_PCI_BAR0_SIZE,8,3        ; @MLXSW_PCI_BAR0_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"invalid PCI region size\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.5:                               ; @.str.5
	.asciz	"ioremap failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_mlxsw_pci_bus,4,2              ; @mlxsw_pci_bus
l_.str.6:                               ; @.str.6
	.asciz	"cannot register bus device\n"

	.no_dead_strip	_mlxsw_pci_probe
.subsections_via_symbols
