	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_do_sense_ports            ## -- Begin function mlx4_do_sense_ports
	.p2align	4, 0x90
_mlx4_do_sense_ports:                   ## @mlx4_do_sense_ports
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_mlx4_priv
	cmpl	$0, (%r15)
	jle	LBB0_13
## %bb.1:
	movq	%rax, %r12
	xorl	%ebx, %ebx
	movq	_MLX4_PORT_TYPE_AUTO@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%r13,%r14,4)
	movq	8(%r12), %rax
	cmpq	$0, 8(%rax,%r14,8)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	cmpq	$0, 8(%rax,%r14,8)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	8(%rax,%r14,8), %rax
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r13), %rdx
	leal	1(%r14), %esi
	movq	%r15, %rdi
	callq	_mlx4_SENSE_PORT
	movq	_MLX4_PORT_TYPE_AUTO@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx,%r14,4), %eax
	movl	%eax, (%r13,%r14,4)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r15), %rax
	incq	%r14
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_2
## %bb.8:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%ecx, (%r13,%rax,4)
	incq	%rax
	movslq	(%r15), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rax,4), %ecx
	testl	%ecx, %ecx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ecx
	jmp	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_PORT_TYPE_AUTO,8,3        ## @MLX4_PORT_TYPE_AUTO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_do_sense_ports            ; -- Begin function mlx4_do_sense_ports
	.p2align	2
_mlx4_do_sense_ports:                   ; @mlx4_do_sense_ports
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_mlx4_priv
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x22, x0
	mov	w24, #1
Lloh0:
	adrp	x25, _MLX4_PORT_TYPE_AUTO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MLX4_PORT_TYPE_AUTO@GOTPAGEOFF]
	mov	x23, x20
	mov	x26, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x23]
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x24, lsl #3]
	cbz	x8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, x24, lsl #3]
	cbz	x8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_mlx4_SENSE_PORT
	cbz	w0, LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	str	w8, [x23]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x24, #1
	ldrsw	x8, [x21]
	add	x26, x26, #4
	add	x23, x23, #4
	cmp	x24, x8
	mov	x24, x9
	b.lt	LBB0_2
; %bb.8:
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x8, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	str	w9, [x20, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, x8, lsl #2]
	cbnz	w9, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x19, x8, lsl #2]
	b	LBB0_10
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_PORT_TYPE_AUTO,8,3        ; @MLX4_PORT_TYPE_AUTO
.subsections_via_symbols
