	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function telem_device_probe
_telem_device_probe:                    ## @telem_device_probe
	.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	%rdi, %r15
	movq	_TELEM_MAX_DEV@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_telem_ida@GOTPCREL(%rip), %rdi
	callq	_ida_alloc_max
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_get_platdata
	movl	%eax, 32(%rbx)
	leaq	28(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	_telem_major@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_MKDEV
	movl	%eax, 16(%rbx)
	movq	_telem_class@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_telem_device_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_TELEM_DEV_NAME_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_dev_set_name
	movq	%rbx, %rdi
	callq	_device_initialize
	movq	%rbx, %r15
	addq	$24, %r15
	movq	_telem_fops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_cdev_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cdev_device_add
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_put_device
	movq	_telem_ida@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	callq	_ida_simple_remove
	movl	%r15d, %r14d
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_7
LBB0_3:
	movq	_telem_ida@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	callq	_ida_simple_remove
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_telem_ida,4,2                  ## @telem_ida
	.comm	_TELEM_MAX_DEV,8,3              ## @TELEM_MAX_DEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to find minor number: %d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_telem_major,4,2                ## @telem_major
	.comm	_telem_class,4,2                ## @telem_class
	.comm	_telem_device_free,4,2          ## @telem_device_free
	.comm	_TELEM_DEV_NAME_FMT,4,2         ## @TELEM_DEV_NAME_FMT
	.comm	_telem_fops,4,2                 ## @telem_fops
	.no_dead_strip	_telem_device_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function telem_device_probe
_telem_device_probe:                    ; @telem_device_probe
	.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	x21, x0
Lloh0:
	adrp	x8, _TELEM_MAX_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TELEM_MAX_DEV@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x1, x8, #1
Lloh3:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh5:
	adrp	x0, _telem_ida@GOTPAGE
Lloh6:
	ldr	x0, [x0, _telem_ida@GOTPAGEOFF]
	bl	_ida_alloc_max
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w1, [x20]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_dev_get_platdata
	str	w0, [x20, #32]
	add	x0, x20, #28
	mov	w1, #1
	bl	_atomic_set
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh7:
	adrp	x8, _telem_major@GOTPAGE
Lloh8:
	ldr	x8, [x8, _telem_major@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_MKDEV
	str	w0, [x20, #16]
Lloh10:
	adrp	x8, _telem_class@GOTPAGE
Lloh11:
	ldr	x8, [x8, _telem_class@GOTPAGEOFF]
Lloh12:
	adrp	x9, _telem_device_free@GOTPAGE
Lloh13:
	ldr	x9, [x9, _telem_device_free@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh14:
	ldr	w8, [x9]
	str	w8, [x20]
Lloh15:
	adrp	x8, _TELEM_DEV_NAME_FMT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TELEM_DEV_NAME_FMT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_dev_set_name
	mov	x0, x20
	bl	_device_initialize
	add	x21, x20, #24
Lloh18:
	adrp	x1, _telem_fops@GOTPAGE
Lloh19:
	ldr	x1, [x1, _telem_fops@GOTPAGEOFF]
	mov	x0, x21
	bl	_cdev_init
	mov	x0, x21
	mov	x1, x20
	bl	_cdev_device_add
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_put_device
Lloh20:
	adrp	x0, _telem_ida@GOTPAGE
Lloh21:
	ldr	x0, [x0, _telem_ida@GOTPAGEOFF]
	mov	x1, x19
	bl	_ida_simple_remove
	mov	x19, x21
	b	LBB0_7
LBB0_4:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_dev_err
	b	LBB0_7
LBB0_5:
Lloh24:
	adrp	x0, _telem_ida@GOTPAGE
Lloh25:
	ldr	x0, [x0, _telem_ida@GOTPAGEOFF]
	mov	x1, x19
	bl	_ida_simple_remove
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_7
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_telem_ida,4,2                  ; @telem_ida
	.comm	_TELEM_MAX_DEV,8,3              ; @TELEM_MAX_DEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to find minor number: %d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_telem_major,4,2                ; @telem_major
	.comm	_telem_class,4,2                ; @telem_class
	.comm	_telem_device_free,4,2          ; @telem_device_free
	.comm	_TELEM_DEV_NAME_FMT,4,2         ; @TELEM_DEV_NAME_FMT
	.comm	_telem_fops,4,2                 ; @telem_fops
	.no_dead_strip	_telem_device_probe
.subsections_via_symbols
