	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atm_proc_dev_register          ## -- Begin function atm_proc_dev_register
	.p2align	4, 0x90
_atm_proc_dev_register:                 ## @atm_proc_dev_register
	.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	24(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.4:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rdx
	imulq	$1717986919, %rdx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rcx
	addl	%esi, %ecx
	addl	$9, %edx
	incq	%rbx
	cmpl	$18, %edx
	ja	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movl	$3, %ebx
LBB0_6:
	subl	(%rax), %r15d
	movq	8(%r14), %rdi
	callq	_strlen
	addq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kmalloc
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	8(%r14), %rdx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_sprintf
	movl	16(%r14), %edi
	movq	_atm_proc_root@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_proc_atm_dev_ops@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r14, %r8
	callq	_proc_create_data
	movl	%eax, 20(%r14)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	16(%r14), %edi
	callq	_kfree
LBB0_9:
	movl	%r15d, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:%d"

	.comm	_atm_proc_root,4,2              ## @atm_proc_root
	.comm	_proc_atm_dev_ops,4,2           ## @proc_atm_dev_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atm_proc_dev_register          ; -- Begin function atm_proc_dev_register
	.p2align	2
_atm_proc_dev_register:                 ; @atm_proc_dev_register
	.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
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.2:
	mov	w21, #2
	mov	w9, #26215
	movk	w9, #26214, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	smull	x10, w8, w9
	lsr	x11, x10, #63
	asr	x10, x10, #34
	add	w12, w8, #9
	add	w8, w10, w11
	add	x21, x21, #1
	cmp	w12, #18
	b.hi	LBB0_3
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
	mov	w21, #3
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_strlen
	add	x0, x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kmalloc
	str	w0, [x19, #16]
	cbz	w0, LBB0_9
; %bb.7:
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	ldr	w0, [x19, #16]
Lloh8:
	adrp	x8, _atm_proc_root@GOTPAGE
Lloh9:
	ldr	x8, [x8, _atm_proc_root@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, _proc_atm_dev_ops@GOTPAGE
Lloh12:
	ldr	x3, [x3, _proc_atm_dev_ops@GOTPAGEOFF]
	mov	w1, #0
	mov	x4, x19
	bl	_proc_create_data
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #20]
	cbnz	w8, LBB0_10
; %bb.8:
	ldr	w0, [x19, #16]
	bl	_kfree
LBB0_9:
	mov	x0, x20
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:%d"

	.comm	_atm_proc_root,4,2              ; @atm_proc_root
	.comm	_proc_atm_dev_ops,4,2           ; @proc_atm_dev_ops
.subsections_via_symbols
