	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max16065_alarm_show
_max16065_alarm_show:                   ## @max16065_alarm_show
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_max16065_update_device
	movq	(%rax), %rcx
	movq	(%rbx), %rdi
	movl	(%rcx,%rdi,4), %edx
	testl	%edx, %edx
	js	LBB0_4
## %bb.1:
	movb	8(%rbx), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	andl	%edx, %ebx
	je	LBB0_3
## %bb.2:
	movl	8(%rax), %r15d
	callq	_MAX16065_FAULT
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_3:
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	setne	%cl
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_4:
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_max16065_alarm_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max16065_alarm_show
_max16065_alarm_show:                   ; @max16065_alarm_show
	.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, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x20, x0
	mov	x0, x21
	bl	_max16065_update_device
	ldr	x9, [x0]
	ldr	x8, [x20]
	ldr	w9, [x9, x8, lsl #2]
	tbnz	w9, #31, LBB0_4
; %bb.1:
	ldr	w10, [x20, #8]
	mov	w11, #1
	lsl	w10, w11, w10
	ands	w20, w10, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	w21, [x0, #8]
	mov	x0, x8
	bl	_MAX16065_FAULT
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_i2c_smbus_write_byte_data
LBB0_3:
	cmp	w20, #0
	cset	w3, ne
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_snprintf
LBB0_4:
	mov	x0, x9
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_max16065_alarm_show
.subsections_via_symbols
