	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stm_find_device                ## -- Begin function stm_find_device
	.p2align	4, 0x90
_stm_find_device:                       ## @stm_find_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	_stm_core_up@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rsi
	movq	_stm_class@GOTPCREL(%rip), %rdi
	callq	_class_find_device_by_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_stm_device
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_put_device
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stm_core_up,4,2                ## @stm_core_up
	.comm	_stm_class,4,2                  ## @stm_class
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stm_find_device                ; -- Begin function stm_find_device
	.p2align	2
_stm_find_device:                       ; @stm_find_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
Lloh0:
	adrp	x8, _stm_core_up@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stm_core_up@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x1, x0
Lloh3:
	adrp	x0, _stm_class@GOTPAGE
Lloh4:
	ldr	x0, [x0, _stm_class@GOTPAGEOFF]
	bl	_class_find_device_by_name
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
	bl	_to_stm_device
	mov	x20, x0
	ldr	w0, [x0]
	bl	_try_module_get
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_put_device
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_stm_core_up,4,2                ; @stm_core_up
	.comm	_stm_class,4,2                  ; @stm_class
.subsections_via_symbols
