	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma8452_show_os_ratio_avail
_mma8452_show_os_ratio_avail:           ## @mma8452_show_os_ratio_avail
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_dev_to_iio_dev
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rdi
	callq	_mma8452_get_odr_index
	movl	%eax, %ebx
	movq	_mma8452_os_ratio@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movslq	%ebx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_mma8452_os_ratio@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	(%rdi,%r14,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rbx
	cmpq	%rbx, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%r12, %rsi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	callq	_scnprintf
	addq	%rax, %r12
	movq	(%r15), %rdi
	movq	%rbx, %r13
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	$10, -1(%r12,%rax)
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mma8452_os_ratio,8,3           ## @mma8452_os_ratio
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d "

	.no_dead_strip	_mma8452_show_os_ratio_avail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma8452_show_os_ratio_avail
_mma8452_show_os_ratio_avail:           ; @mma8452_show_os_ratio_avail
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	bl	_dev_to_iio_dev
	bl	_iio_priv
	bl	_mma8452_get_odr_index
	mov	x21, x0
Lloh0:
	adrp	x23, _mma8452_os_ratio@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mma8452_os_ratio@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	x20, #0
	mov	x27, #0
	sxtw	x25, w21
Lloh2:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	x8, [x0, x24, lsl #3]
	ldr	x22, [x8, x25, lsl #3]
	cmp	x27, x22
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x19, x20
	ldr	x8, [x26]
	sub	x1, x8, x20
	mov	x2, x21
	mov	x3, x22
	bl	_scnprintf
	add	x20, x0, x20
	ldr	x0, [x23]
	mov	x27, x22
	b	LBB0_2
LBB0_5:
	mov	x20, #0
LBB0_6:
	add	x8, x20, x19
	mov	w9, #10
	sturb	w9, [x8, #-1]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mma8452_os_ratio,8,3           ; @mma8452_os_ratio
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d "

	.no_dead_strip	_mma8452_show_os_ratio_avail
.subsections_via_symbols
