	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmpex_ver_check
_ibmpex_ver_check:                      ## @ibmpex_ver_check
	.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, %rbx
	movq	_PEX_GET_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	48(%rdi), %rcx
	movl	%eax, (%rcx)
	movl	$1, 44(%rdi)
	callq	_ibmpex_send_message
	leaq	40(%rbx), %rdi
	callq	_wait_for_completion
	cmpq	$0, 32(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpl	$6, (%rbx)
	jne	LBB0_2
## %bb.3:
	movq	8(%rbx), %rdi
	movl	(%rdi), %r14d
	movl	%r14d, 20(%rbx)
	movl	4(%rdi), %r15d
	movl	%r15d, 16(%rbx)
	movl	24(%rbx), %r12d
	movl	$2, %esi
	callq	_extract_value
	movq	8(%rbx), %rcx
	movl	16(%rcx), %r9d
	movl	20(%rcx), %r10d
	movl	4(%rbx), %ebx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	pushq	%rbx
	pushq	%r10
	callq	_dev_info
	addq	$16, %rsp
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PEX_GET_VERSION,4,2            ## @PEX_GET_VERSION
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found BMC with sensor interface v%d.%d %d-%02d-%02d on interface %d\n"

	.no_dead_strip	_ibmpex_ver_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmpex_ver_check
_ibmpex_ver_check:                      ; @ibmpex_ver_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x8, _PEX_GET_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEX_GET_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0, #48]
	str	w8, [x9]
	mov	w8, #1
	str	w8, [x0, #44]
	bl	_ibmpex_send_message
	add	x0, x19, #40
	bl	_wait_for_completion
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #6
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
	ldr	w20, [x0]
	str	w20, [x19, #20]
	ldr	w21, [x0, #4]
	str	w21, [x19, #16]
	ldr	w22, [x19, #24]
	mov	w1, #2
	bl	_extract_value
	mov	x4, x0
	ldr	x8, [x19, #8]
	ldp	w5, w6, [x8, #16]
	ldr	w7, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	bl	_dev_info
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PEX_GET_VERSION,4,2            ; @PEX_GET_VERSION
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found BMC with sensor interface v%d.%d %d-%02d-%02d on interface %d\n"

	.no_dead_strip	_ibmpex_ver_check
.subsections_via_symbols
