	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina2xx_buffer_enable
_ina2xx_buffer_enable:                  ## @ina2xx_buffer_enable
	.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
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_SAMPLING_PERIOD
	movl	%eax, %r15d
	leaq	8(%rbx), %r12
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	divl	%r15d
	movl	16(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ecx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ina2xx_capture_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rsi
	movl	%r15d, %r9d
	callq	_kthread_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_get_task_struct
	movq	%rbx, %rdi
	callq	_wake_up_process
	movq	%rbx, 8(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling buffer w/ scan_mask %02x, freq = %d, avg =%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Expected work period: %u us\n"

L_.str.2:                               ## @.str.2
	.asciz	"Async readout mode: %d\n"

	.comm	_ina2xx_capture_thread,4,2      ## @ina2xx_capture_thread
L_.str.3:                               ## @.str.3
	.asciz	"%s:%d-%uus"

	.no_dead_strip	_ina2xx_buffer_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina2xx_buffer_enable
_ina2xx_buffer_enable:                  ; @ina2xx_buffer_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_iio_priv
	mov	x19, x0
	bl	_SAMPLING_PERIOD
	mov	x21, x0
	add	x22, x20, #8
	ldr	x8, [x20, #16]
	ldr	w2, [x8]
	mov	w8, #16960
	movk	w8, #15, lsl #16
	ldr	w9, [x19, #16]
	udiv	w8, w8, w0
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_dbg
	ldr	w2, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
Lloh6:
	adrp	x8, _ina2xx_capture_thread@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ina2xx_capture_thread@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	w4, w3, [x20]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x20
	mov	x5, x21
	bl	_kthread_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_2:
	mov	x0, x20
	bl	_get_task_struct
	mov	x0, x20
	bl	_wake_up_process
	str	x20, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling buffer w/ scan_mask %02x, freq = %d, avg =%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Expected work period: %u us\n"

l_.str.2:                               ; @.str.2
	.asciz	"Async readout mode: %d\n"

	.comm	_ina2xx_capture_thread,4,2      ; @ina2xx_capture_thread
l_.str.3:                               ; @.str.3
	.asciz	"%s:%d-%uus"

	.no_dead_strip	_ina2xx_buffer_enable
.subsections_via_symbols
