	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_parse_pkglog
_bnxt_parse_pkglog:                     ## @bnxt_parse_pkglog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.1:
	movb	$0, -1(%rdx,%rsi)
	movb	(%rsi), %dl
	xorl	%r9d, %r9d
	testb	%dl, %dl
	je	LBB0_17
## %bb.2:
	movl	$1537, %r8d                     ## imm = 0x601
	xorl	%r10d, %r10d
	jmp	LBB0_4
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, -1(%rcx)
	incl	%r9d
	movb	(%rcx), %dl
	movq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testb	%dl, %dl
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$10, %dl
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r10, %rax
	testb	%dl, %dl
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, (%rsi)
	movb	1(%rsi), %dl
	incq	%rsi
	xorl	%r10d, %r10d
	movl	$0, %r9d
	testb	%dl, %dl
	jne	LBB0_4
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rsi), %rcx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	movzbl	(%rcx), %edx
	incq	%rcx
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, %dl
	ja	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movzbl	%dl, %eax
	btq	%rax, %r8
	jae	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edi, %r9d
	cmoveq	%rsi, %r10
	cmpb	$9, %dl
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	decq	%rcx
	movq	%r10, %rax
	movq	%rcx, %rsi
	testb	%dl, %dl
	jne	LBB0_14
LBB0_15:
	popq	%rbp
	retq
LBB0_17:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bnxt_parse_pkglog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_parse_pkglog
_bnxt_parse_pkglog:                     ; @bnxt_parse_pkglog
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_15
; %bb.1:
	add	x8, x2, x1
	sturb	wzr, [x8, #-1]
	ldrb	w11, [x1]
	cbz	w11, LBB0_15
; %bb.2:
	mov	x13, #0
	mov	w12, #0
	mov	w9, #1
	mov	w10, #1537
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sturb	wzr, [x14, #-1]
	add	w12, w12, #1
	ldrb	w11, [x14]
	mov	x13, x8
	mov	x1, x14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cbz	w11, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #10
	b.ne	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x13
	cbz	w11, LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, #0
	mov	w12, #0
	strb	wzr, [x1]
	ldrb	w11, [x1, #1]!
	cbnz	w11, LBB0_4
	b	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x1, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldrb	w11, [x14], #1
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w11, #10
	b.hi	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	lsl	w8, w9, w11
	tst	w8, w10
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w12, w0
	csel	x8, x1, x13, eq
	cmp	w11, #9
	b.eq	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x1, x14, #1
	cbnz	w11, LBB0_7
LBB0_14:
	mov	x0, x8
	ret
LBB0_15:
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bnxt_parse_pkglog
.subsections_via_symbols
