	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iio_store_timestamp_clock
_iio_store_timestamp_clock:             ## @iio_store_timestamp_clock
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_CLOCK_MONOTONIC_RAW@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_CLOCK_REALTIME_COARSE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_CLOCK_MONOTONIC_COARSE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_CLOCK_BOOTTIME@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sysfs_streq
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_CLOCK_TAI@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_to_iio_dev
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_iio_device_set_clock
	testl	%eax, %eax
	cmovnel	%eax, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"realtime"

	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
L_.str.1:                               ## @.str.1
	.asciz	"monotonic"

	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
L_.str.2:                               ## @.str.2
	.asciz	"monotonic_raw"

	.comm	_CLOCK_MONOTONIC_RAW,4,2        ## @CLOCK_MONOTONIC_RAW
L_.str.3:                               ## @.str.3
	.asciz	"realtime_coarse"

	.comm	_CLOCK_REALTIME_COARSE,4,2      ## @CLOCK_REALTIME_COARSE
L_.str.4:                               ## @.str.4
	.asciz	"monotonic_coarse"

	.comm	_CLOCK_MONOTONIC_COARSE,4,2     ## @CLOCK_MONOTONIC_COARSE
L_.str.5:                               ## @.str.5
	.asciz	"boottime"

	.comm	_CLOCK_BOOTTIME,4,2             ## @CLOCK_BOOTTIME
L_.str.6:                               ## @.str.6
	.asciz	"tai"

	.comm	_CLOCK_TAI,4,2                  ## @CLOCK_TAI
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iio_store_timestamp_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iio_store_timestamp_clock
_iio_store_timestamp_clock:             ; @iio_store_timestamp_clock
	.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, x3
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_sysfs_streq
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_sysfs_streq
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_sysfs_streq
	cbz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _CLOCK_MONOTONIC_RAW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CLOCK_MONOTONIC_RAW@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_sysfs_streq
	cbz	x0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _CLOCK_REALTIME_COARSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CLOCK_REALTIME_COARSE@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_sysfs_streq
	cbz	x0, LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _CLOCK_MONOTONIC_COARSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CLOCK_MONOTONIC_COARSE@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_sysfs_streq
	cbz	x0, LBB0_12
; %bb.11:
Lloh22:
	adrp	x8, _CLOCK_BOOTTIME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CLOCK_BOOTTIME@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_sysfs_streq
	cbz	x0, LBB0_16
; %bb.13:
Lloh26:
	adrp	x8, _CLOCK_TAI@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CLOCK_TAI@GOTPAGEOFF]
LBB0_14:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_dev_to_iio_dev
	mov	x1, x21
	bl	_iio_device_set_clock
	cmp	w0, #0
	csel	w0, w19, w0, eq
LBB0_15:
	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
LBB0_16:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realtime"

	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
l_.str.1:                               ; @.str.1
	.asciz	"monotonic"

	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
l_.str.2:                               ; @.str.2
	.asciz	"monotonic_raw"

	.comm	_CLOCK_MONOTONIC_RAW,4,2        ; @CLOCK_MONOTONIC_RAW
l_.str.3:                               ; @.str.3
	.asciz	"realtime_coarse"

	.comm	_CLOCK_REALTIME_COARSE,4,2      ; @CLOCK_REALTIME_COARSE
l_.str.4:                               ; @.str.4
	.asciz	"monotonic_coarse"

	.comm	_CLOCK_MONOTONIC_COARSE,4,2     ; @CLOCK_MONOTONIC_COARSE
l_.str.5:                               ; @.str.5
	.asciz	"boottime"

	.comm	_CLOCK_BOOTTIME,4,2             ; @CLOCK_BOOTTIME
l_.str.6:                               ; @.str.6
	.asciz	"tai"

	.comm	_CLOCK_TAI,4,2                  ; @CLOCK_TAI
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iio_store_timestamp_clock
.subsections_via_symbols
