	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_setup_counter_device
_stm32_setup_counter_device:            ## @stm32_setup_counter_device
	.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
	movl	$4, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 48(%rbx)
	movq	%r14, 16(%rbx)
	movq	_stm32_trigger_info@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_INDIO_HARDWARE_TRIGGERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$1, (%rbx)
	movq	_stm32_trigger_channel@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_iio_device_register
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iio_priv                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stm32_trigger_info,4,2         ## @stm32_trigger_info
	.comm	_INDIO_HARDWARE_TRIGGERED,4,2   ## @INDIO_HARDWARE_TRIGGERED
	.comm	_stm32_trigger_channel,4,2      ## @stm32_trigger_channel
	.no_dead_strip	_stm32_setup_counter_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_setup_counter_device
_stm32_setup_counter_device:            ; @stm32_setup_counter_device
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	mov	w1, #4
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_dev_name
	str	w0, [x19, #48]
Lloh0:
	adrp	x8, _stm32_trigger_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stm32_trigger_info@GOTPAGEOFF]
	str	x8, [x19, #40]
Lloh2:
	adrp	x8, _INDIO_HARDWARE_TRIGGERED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INDIO_HARDWARE_TRIGGERED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	w8, #1
	str	w8, [x19]
Lloh5:
	adrp	x8, _stm32_trigger_channel@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stm32_trigger_channel@GOTPAGEOFF]
	stp	x20, x8, [x19, #16]
	ldr	w8, [x20]
	str	w8, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_devm_iio_device_register
	cbz	w0, LBB0_3
LBB0_2:
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iio_priv
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_stm32_trigger_info,4,2         ; @stm32_trigger_info
	.comm	_INDIO_HARDWARE_TRIGGERED,4,2   ; @INDIO_HARDWARE_TRIGGERED
	.comm	_stm32_trigger_channel,4,2      ; @stm32_trigger_channel
	.no_dead_strip	_stm32_setup_counter_device
.subsections_via_symbols
