	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lnbh29_read_vmon
_lnbh29_read_vmon:                      ## @lnbh29_read_vmon
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$0, -100(%rbp)
	movl	$1, -96(%rbp)
	leaq	-100(%rbp), %rax
	movq	%rax, -88(%rbp)
	movl	$0, -80(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -76(%rbp)
	movl	$8, -72(%rbp)
	leaq	-40(%rbp), %rcx
	movq	%rcx, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movl	%eax, -52(%rbp)
	movq	(%rdi), %rdi
	leaq	-96(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movl	%eax, %ecx
	movq	_EIO@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	subl	(%r15), %ebx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	cmovel	%ecx, %ebx
	testl	%ecx, %ecx
	cmovsl	%ecx, %ebx
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movl	-40(%rbp), %edx
	movq	_LNBH29_STATUS_OLF@GOTPCREL(%rip), %rcx
	movq	_LNBH29_STATUS_VMON@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rcx), %esi
	testl	%edx, %esi
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	xorl	%eax, %eax
	subl	(%r15), %eax
	jmp	LBB0_4
LBB0_1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	movl	%ebx, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LNBH29 I2C transfer failed (%d)\n"

	.comm	_LNBH29_STATUS_OLF,4,2          ## @LNBH29_STATUS_OLF
	.comm	_LNBH29_STATUS_VMON,4,2         ## @LNBH29_STATUS_VMON
L_.str.1:                               ## @.str.1
	.asciz	"LNBH29 voltage in failure state, status reg 0x%x\n"

	.no_dead_strip	_lnbh29_read_vmon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lnbh29_read_vmon
_lnbh29_read_vmon:                      ; @lnbh29_read_vmon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w8, #1
	stp	wzr, w8, [sp, #12]
	add	x8, sp, #12
	str	x8, [sp, #24]
	ldr	w8, [x0, #8]
	stp	wzr, w8, [sp, #32]
	mov	w9, #8
	str	w9, [sp, #40]
	sub	x9, x29, #48
	str	x9, [sp, #48]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
	ldr	x0, [x0]
	add	x1, sp, #16
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	mov	w8, #-1
	ccmp	w0, w8, #4, ne
Lloh6:
	adrp	x21, _EIO@GOTPAGE
Lloh7:
	ldr	x21, [x21, _EIO@GOTPAGEOFF]
	ldr	w8, [x21]
	csneg	w20, w0, w8, le
	tbnz	w20, #31, LBB0_3
; %bb.1:
	ldur	w2, [x29, #-48]
Lloh8:
	adrp	x8, _LNBH29_STATUS_OLF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LNBH29_STATUS_OLF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _LNBH29_STATUS_VMON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LNBH29_STATUS_VMON@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w2
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w8, [x21]
	neg	w20, w8
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LNBH29 I2C transfer failed (%d)\n"

	.comm	_LNBH29_STATUS_OLF,4,2          ; @LNBH29_STATUS_OLF
	.comm	_LNBH29_STATUS_VMON,4,2         ; @LNBH29_STATUS_VMON
l_.str.1:                               ; @.str.1
	.asciz	"LNBH29 voltage in failure state, status reg 0x%x\n"

	.no_dead_strip	_lnbh29_read_vmon
.subsections_via_symbols
