	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxplat_mlxcpld_verify_bus_topology
_mlxplat_mlxcpld_verify_bus_topology:   ## @mlxplat_mlxcpld_verify_bus_topology
	.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, %r14
	movq	_MLXPLAT_CPLD_PHYS_ADAPTER_DEF_NR@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, (%rdi)
	movl	(%r12), %ebx
	movq	_MLXPLAT_CPLD_MAX_PHYS_ADAPTER_NUM@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jge	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_i2c_get_adapter
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	callq	_i2c_put_adapter
	incl	%ebx
	jmp	LBB0_1
LBB0_4:
	xorl	%eax, %eax
	cmpl	%ebx, (%r12)
	je	LBB0_14
## %bb.5:
	movl	(%r15), %eax
LBB0_6:
	cmpl	%eax, %ebx
	jne	LBB0_8
## %bb.7:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_8:
	movl	%ebx, (%r14)
	movq	_mlxplat_mux_data@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	movq	_mlxplat_hotplug@GOTPCREL(%rip), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	movq	(%r15), %rdi
	movl	%ecx, %eax
	subl	(%rdi,%rbx,8), %eax
	movl	%ecx, (%rdi,%rbx,8)
	addl	%eax, 4(%rdi,%rbx,8)
	testl	%eax, %eax
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXPLAT_CPLD_PHYS_ADAPTER_DEF_NR,4,2 ## @MLXPLAT_CPLD_PHYS_ADAPTER_DEF_NR
	.comm	_MLXPLAT_CPLD_MAX_PHYS_ADAPTER_NUM,4,2 ## @MLXPLAT_CPLD_MAX_PHYS_ADAPTER_NUM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_mlxplat_mux_data,8,3           ## @mlxplat_mux_data
	.comm	_mlxplat_hotplug,8,3            ## @mlxplat_hotplug
	.no_dead_strip	_mlxplat_mlxcpld_verify_bus_topology
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxplat_mlxcpld_verify_bus_topology
_mlxplat_mlxcpld_verify_bus_topology:   ; @mlxplat_mlxcpld_verify_bus_topology
	.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	x19, x0
Lloh0:
	adrp	x21, _MLXPLAT_CPLD_PHYS_ADAPTER_DEF_NR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MLXPLAT_CPLD_PHYS_ADAPTER_DEF_NR@GOTPAGEOFF]
	ldr	w8, [x21]
	str	w8, [x0]
	ldr	w20, [x21]
Lloh2:
	adrp	x22, _MLXPLAT_CPLD_MAX_PHYS_ADAPTER_NUM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MLXPLAT_CPLD_MAX_PHYS_ADAPTER_NUM@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w20, w8
	b.ge	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_i2c_get_adapter
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_i2c_put_adapter
	add	w20, w20, #1
	b	LBB0_1
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_13
; %bb.5:
	ldr	w8, [x22]
LBB0_6:
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_8:
	str	w20, [x19]
Lloh7:
	adrp	x20, _mlxplat_mux_data@GOTPAGE
Lloh8:
	ldr	x20, [x20, _mlxplat_mux_data@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x21, #0
	mov	x22, #0
Lloh9:
	adrp	x23, _mlxplat_hotplug@GOTPAGE
Lloh10:
	ldr	x23, [x23, _mlxplat_hotplug@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	ldr	x0, [x20]
	add	x10, x0, x21
	ldp	w8, w11, [x10]
	sub	w8, w9, w8
	add	w11, w11, w8
	stp	w9, w11, [x10]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x23]
	str	w8, [x9]
	b	LBB0_10
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXPLAT_CPLD_PHYS_ADAPTER_DEF_NR,4,2 ; @MLXPLAT_CPLD_PHYS_ADAPTER_DEF_NR
	.comm	_MLXPLAT_CPLD_MAX_PHYS_ADAPTER_NUM,4,2 ; @MLXPLAT_CPLD_MAX_PHYS_ADAPTER_NUM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_mlxplat_mux_data,8,3           ; @mlxplat_mux_data
	.comm	_mlxplat_hotplug,8,3            ; @mlxplat_hotplug
	.no_dead_strip	_mlxplat_mlxcpld_verify_bus_topology
.subsections_via_symbols
