	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5tool_get_eeprom_info
_mlx5tool_get_eeprom_info:              ## @mlx5tool_get_eeprom_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	(%rbx), %eax
	movl	%eax, -40(%rbp)
	movq	_MLX5_EEPROM_GET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r14d, %edi
	movq	%r15, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MLX5_EEPROM_PAGE_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	-48(%rbp), %rdi
	callq	_malloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r12), %esi
	leaq	-56(%rbp), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movq	-56(%rbp), %rdi
	callq	_free
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	leaq	-56(%rbp), %rdi
	callq	_mlx5tool_eeprom_print
	movq	-56(%rbp), %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_EEPROM_GET,4,2            ## @MLX5_EEPROM_GET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MLX5_EEPROM_GET"

	.comm	_MLX5_EEPROM_PAGE_LENGTH,8,3    ## @MLX5_EEPROM_PAGE_LENGTH
L_.str.1:                               ## @.str.1
	.asciz	"alloc eeprom_info.eeprom_info_buf "

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlx5tool_get_eeprom_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5tool_get_eeprom_info
_mlx5tool_get_eeprom_info:              ; @mlx5tool_get_eeprom_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x20]
	str	w8, [sp, #24]
Lloh0:
	adrp	x21, _MLX5_EEPROM_GET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MLX5_EEPROM_GET@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_8
LBB0_2:
	ldr	x8, [sp, #16]
Lloh4:
	adrp	x9, _MLX5_EEPROM_PAGE_LENGTH@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MLX5_EEPROM_PAGE_LENGTH@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_6:
	add	x0, sp, #8
	bl	_mlx5tool_eeprom_print
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_free
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_EEPROM_GET,4,2            ; @MLX5_EEPROM_GET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MLX5_EEPROM_GET"

	.comm	_MLX5_EEPROM_PAGE_LENGTH,8,3    ; @MLX5_EEPROM_PAGE_LENGTH
l_.str.1:                               ; @.str.1
	.asciz	"alloc eeprom_info.eeprom_info_buf "

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlx5tool_get_eeprom_info
.subsections_via_symbols
