	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxcpld_i2c_check_status
_mlxcpld_i2c_check_status:              ## @mlxcpld_i2c_check_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_MLXCPLD_LPCI2C_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movl	$1, %ecx
	callq	_mlxcpld_i2c_read_comm
	movl	-12(%rbp), %eax
	movq	_MLXCPLD_LPCI2C_TRANS_END@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_MLXCPLD_LPCI2C_STATUS_NACK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_2
## %bb.3:
	movq	_MLXCPLD_LPCI2C_ACK_IND@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_MLXCPLD_LPCI2C_NO_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	_MLXCPLD_LPCI2C_NACK_IND@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXCPLD_LPCI2C_STATUS_REG,4,2  ## @MLXCPLD_LPCI2C_STATUS_REG
	.comm	_MLXCPLD_LPCI2C_TRANS_END,4,2   ## @MLXCPLD_LPCI2C_TRANS_END
	.comm	_MLXCPLD_LPCI2C_STATUS_NACK,4,2 ## @MLXCPLD_LPCI2C_STATUS_NACK
	.comm	_MLXCPLD_LPCI2C_NACK_IND,4,2    ## @MLXCPLD_LPCI2C_NACK_IND
	.comm	_MLXCPLD_LPCI2C_ACK_IND,4,2     ## @MLXCPLD_LPCI2C_ACK_IND
	.comm	_MLXCPLD_LPCI2C_NO_IND,4,2      ## @MLXCPLD_LPCI2C_NO_IND
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mlxcpld_i2c_check_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxcpld_i2c_check_status
_mlxcpld_i2c_check_status:              ; @mlxcpld_i2c_check_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _MLXCPLD_LPCI2C_STATUS_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXCPLD_LPCI2C_STATUS_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #1
	bl	_mlxcpld_i2c_read_comm
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _MLXCPLD_LPCI2C_TRANS_END@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLXCPLD_LPCI2C_TRANS_END@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh6:
	adrp	x9, _MLXCPLD_LPCI2C_STATUS_NACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLXCPLD_LPCI2C_STATUS_NACK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MLXCPLD_LPCI2C_ACK_IND@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MLXCPLD_LPCI2C_ACK_IND@GOTPAGEOFF]
Lloh11:
	adrp	x11, _MLXCPLD_LPCI2C_NACK_IND@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MLXCPLD_LPCI2C_NACK_IND@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _MLXCPLD_LPCI2C_NO_IND@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLXCPLD_LPCI2C_NO_IND@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXCPLD_LPCI2C_STATUS_REG,4,2  ; @MLXCPLD_LPCI2C_STATUS_REG
	.comm	_MLXCPLD_LPCI2C_TRANS_END,4,2   ; @MLXCPLD_LPCI2C_TRANS_END
	.comm	_MLXCPLD_LPCI2C_STATUS_NACK,4,2 ; @MLXCPLD_LPCI2C_STATUS_NACK
	.comm	_MLXCPLD_LPCI2C_NACK_IND,4,2    ; @MLXCPLD_LPCI2C_NACK_IND
	.comm	_MLXCPLD_LPCI2C_ACK_IND,4,2     ; @MLXCPLD_LPCI2C_ACK_IND
	.comm	_MLXCPLD_LPCI2C_NO_IND,4,2      ; @MLXCPLD_LPCI2C_NO_IND
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mlxcpld_i2c_check_status
.subsections_via_symbols
