	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at_async_cgreg
_at_async_cgreg:                        ## @at_async_cgreg
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_4
LBB0_2:
	movl	(%r14), %eax
	decl	%eax
	testl	$-5, %eax
	movl	$30, %edx
	movl	$1, %eax
	cmovnel	%eax, %edx
	movq	_tmr_cgreg@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_timers@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movq	%r14, %r8
	callq	_tmr_add
	movl	-20(%rbp), %eax
	cmpl	%eax, (%r14)
	je	LBB0_4
## %bb.3:
	movl	%eax, (%r14)
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_at_cmd_async
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"+CGREG: %*d,%d"

L_.str.1:                               ## @.str.1
	.asciz	"+CGREG: %d"

	.comm	_timers,4,2                     ## @timers
	.comm	_tmr_cgreg,4,2                  ## @tmr_cgreg
L_.str.2:                               ## @.str.2
	.asciz	"AT+COPS?\r\n"

	.no_dead_strip	_at_async_cgreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at_async_cgreg
_at_async_cgreg:                        ; @at_async_cgreg
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_sscanf
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_4
LBB0_2:
	ldr	w8, [x19]
	sub	w8, w8, #1
	tst	w8, #0xfffffffb
	mov	w8, #30
	csinc	w2, w8, wzr, eq
Lloh4:
	adrp	x8, _tmr_cgreg@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tmr_cgreg@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x0, _timers@GOTPAGE
Lloh8:
	ldr	x0, [x0, _timers@GOTPAGEOFF]
	mov	w1, #1
	mov	x4, x19
	bl	_tmr_add
	ldr	w9, [x19]
	ldr	w8, [sp, #12]
	cmp	w9, w8
	b.eq	LBB0_4
; %bb.3:
	str	w8, [x19]
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_at_cmd_async
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"+CGREG: %*d,%d"

l_.str.1:                               ; @.str.1
	.asciz	"+CGREG: %d"

	.comm	_timers,4,2                     ; @timers
	.comm	_tmr_cgreg,4,2                  ; @tmr_cgreg
l_.str.2:                               ; @.str.2
	.asciz	"AT+COPS?\r\n"

	.no_dead_strip	_at_async_cgreg
.subsections_via_symbols
