	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tsc2007_iio_configure          ## -- Begin function tsc2007_iio_configure
	.p2align	4, 0x90
_tsc2007_iio_configure:                 ## @tsc2007_iio_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movl	$8, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%r14, (%rax)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	movq	%rax, 32(%rbx)
	movq	_tsc2007_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_tsc2007_iio_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%rbx)
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_devm_iio_device_register
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iio_device_alloc failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"tsc2007"

	.comm	_tsc2007_iio_info,4,2           ## @tsc2007_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_tsc2007_iio_channel,4,2        ## @tsc2007_iio_channel
L_.str.2:                               ## @.str.2
	.asciz	"iio_device_register() failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tsc2007_iio_configure          ; -- Begin function tsc2007_iio_configure
	.p2align	2
_tsc2007_iio_configure:                 ; @tsc2007_iio_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0]
	mov	w1, #8
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	str	x19, [x0]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x20]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _tsc2007_iio_info@GOTPAGE
Lloh3:
	ldr	x9, [x9, _tsc2007_iio_info@GOTPAGEOFF]
	stp	x9, x8, [x20, #24]
Lloh4:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _tsc2007_iio_channel@GOTPAGE
Lloh8:
	ldr	x9, [x9, _tsc2007_iio_channel@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #12]
	bl	_ARRAY_SIZE
	str	w0, [x20, #8]
	ldr	x0, [x19]
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iio_device_alloc failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"tsc2007"

	.comm	_tsc2007_iio_info,4,2           ; @tsc2007_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_tsc2007_iio_channel,4,2        ; @tsc2007_iio_channel
l_.str.2:                               ; @.str.2
	.asciz	"iio_device_register() failed: %d\n"

.subsections_via_symbols
