	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mlx4_get_module_info
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx4_get_module_info
	.p2align	4, 0x90
_mlx4_get_module_info:                  ## @mlx4_get_module_info
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MODULE_INFO_MAX_READ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rcx, %rax
	cmovlq	%rax, %r13
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	jmp	LBB0_2
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	%r14, %rdi
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx4_free_cmd_mailbox
	movq	%rbx, %rdi
LBB0_2:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	%r12, %r14
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r15
	movq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, (%r15)
	movl	$65376, %edi                    ## imm = 0xFF60
	callq	_cpu_to_be16
	movq	%rax, 32(%r15)
	movq	%r15, %rdx
	movq	_I2C_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %r12
	subq	%r14, %r12
	leaq	(%r14,%r13), %rcx
	cmpq	%rcx, %rax
	cmovgeq	%r13, %r12
	cmpq	%r14, %rax
	cmovleq	%r13, %r12
	movq	_I2C_ADDR_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %r13
	movq	16(%rdx), %rbx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_cpu_to_be16
	movq	%rax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, 16(%rbx)
	movq	%r12, %rdi
	callq	_cpu_to_be16
	movq	%rax, 8(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edx
	movq	_MLX4_CMD_MAD_IFC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%r14, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	$3, %r8d
	pushq	%rbx
	pushq	%rax
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	callq	_be16_to_cpu
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	callq	_be16_to_cpu
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_cable_info_mad_err_str
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$65376, %edx                    ## imm = 0xFF60
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	movq	%r13, %r9
	pushq	%rax
	pushq	%r15
	pushq	%r12
	callq	_mlx4_warn
	addq	$32, %rsp
	movq	_I2C_ADDR_HIGH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %edi
	callq	_MAD_STATUS_2_CABLE_ERR
	movq	_CABLE_INF_I2C_ADDR@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	je	LBB0_11
LBB0_9:
	negl	%r15d
	movl	%r15d, %r13d
	jmp	LBB0_11
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movl	%r12d, %r13d
LBB0_11:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx4_free_cmd_mailbox
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx4_free_cmd_mailbox
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODULE_INFO_MAX_READ,8,3       ## @MODULE_INFO_MAX_READ
	.comm	_I2C_PAGE_SIZE,8,3              ## @I2C_PAGE_SIZE
	.comm	_I2C_ADDR_LOW,8,3               ## @I2C_ADDR_LOW
	.comm	_MLX4_CMD_MAD_IFC,4,2           ## @MLX4_CMD_MAD_IFC
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ## @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MLX4_CMD_MAD_IFC Get Module info attr(%x) port(%d) i2c_addr(%x) offset(%d) size(%d): Response Mad Status(%x) - %s\n"

	.comm	_I2C_ADDR_HIGH,8,3              ## @I2C_ADDR_HIGH
	.comm	_CABLE_INF_I2C_ADDR,8,3         ## @CABLE_INF_I2C_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_get_module_info           ; -- Begin function mlx4_get_module_info
	.p2align	2
_mlx4_get_module_info:                  ; @mlx4_get_module_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MODULE_INFO_MAX_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODULE_INFO_MAX_READ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	csel	x25, x8, x3, lt
	bl	_mlx4_alloc_cmd_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_mlx4_alloc_cmd_mailbox
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_free_cmd_mailbox
	mov	x0, x21
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_5:
	ldr	x27, [x20, #8]
	ldr	x28, [x21, #8]
	movi.4s	v0, #1
	str	q0, [x27]
	mov	w0, #65376
	bl	_cpu_to_be16
	str	x0, [x27, #32]
Lloh3:
	adrp	x8, _I2C_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x9, x8, x22
	add	x10, x25, x22
	cmp	x8, x10
	ccmp	x8, x22, #4, lt
	csel	x25, x9, x25, gt
Lloh6:
	adrp	x8, _I2C_ADDR_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_ADDR_LOW@GOTPAGEOFF]
Lloh8:
	ldr	x26, [x8]
	ldr	x27, [x27, #16]
	mov	x0, x22
	bl	_cpu_to_be16
	stp	xzr, x0, [x27, #24]
	str	x26, [x27, #16]
	mov	x0, x25
	bl	_cpu_to_be16
	str	x0, [x27, #8]
	ldr	w1, [x20]
	ldr	w2, [x21]
Lloh9:
	adrp	x8, _MLX4_CMD_MAD_IFC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_CMD_MAD_IFC@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
Lloh15:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh17:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x3, x23
	mov	w4, #3
	bl	_mlx4_cmd_box
	mov	x27, x0
	cbnz	w0, LBB0_12
; %bb.6:
	ldr	w0, [x28, #24]
	bl	_be16_to_cpu
	cbz	w0, LBB0_11
; %bb.7:
	ldr	w0, [x28, #24]
	bl	_be16_to_cpu
	mov	x24, x0
	bl	_cable_info_mad_err_str
	str	w0, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #65376
	mov	x3, x23
	mov	x4, x26
	mov	x5, x22
	mov	x6, x25
	mov	x7, x24
	bl	_mlx4_warn
Lloh20:
	adrp	x8, _I2C_ADDR_HIGH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2C_ADDR_HIGH@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x24
	bl	_MAD_STATUS_2_CABLE_ERR
Lloh23:
	adrp	x8, _CABLE_INF_I2C_ADDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CABLE_INF_I2C_ADDR@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	mov	w27, #0
	b	LBB0_12
LBB0_10:
	neg	w27, w24
	b	LBB0_12
LBB0_11:
	ldr	x8, [x28, #16]
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x25
	bl	_memcpy
	mov	x27, x25
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_free_cmd_mailbox
	mov	x0, x19
	mov	x1, x21
	bl	_mlx4_free_cmd_mailbox
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MODULE_INFO_MAX_READ,8,3       ; @MODULE_INFO_MAX_READ
	.comm	_I2C_PAGE_SIZE,8,3              ; @I2C_PAGE_SIZE
	.comm	_I2C_ADDR_LOW,8,3               ; @I2C_ADDR_LOW
	.comm	_MLX4_CMD_MAD_IFC,4,2           ; @MLX4_CMD_MAD_IFC
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ; @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MLX4_CMD_MAD_IFC Get Module info attr(%x) port(%d) i2c_addr(%x) offset(%d) size(%d): Response Mad Status(%x) - %s\n"

	.comm	_I2C_ADDR_HIGH,8,3              ; @I2C_ADDR_HIGH
	.comm	_CABLE_INF_I2C_ADDR,8,3         ; @CABLE_INF_I2C_ADDR
.subsections_via_symbols
