	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_browser
_parse_browser:                         ## @parse_browser
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movslq	%edx, %r15
	movq	(%rcx,%r15,8), %rax
	movq	(%rax), %rdi
	movl	$32, %esi
	callq	_count_matches
	movq	%r14, %r13
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %r13
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	incq	%r13
	decq	%rbx
	jne	LBB0_4
	jmp	LBB0_6
LBB0_5:
	xorl	%r13d, %r13d
LBB0_6:
	movq	(%r12,%r15,8), %rax
	movq	8(%rax), %rsi
	movq	_BROWSER_TYPE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_xstrncpy
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.22:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parse_opera                    ## TAILCALL
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	cmpq	%r14, %rax
	jbe	LBB0_15
## %bb.14:
	movq	%rax, %rbx
	leaq	5(%r14), %r15
	movq	%rax, %rdi
	callq	_strlen
	leaq	1(%rax), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memmove
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_strpbrk
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movb	$0, (%rax)
LBB0_18:
	movq	%r14, %rdi
	movl	$32, %esi
	movl	$47, %edx
	callq	_char_replace
	movq	%rax, %r14
	movq	%rax, %rdi
	jmp	LBB0_9
LBB0_19:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_strpbrk
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movb	$0, (%rax)
LBB0_21:
	movq	%r14, %rdi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alloc_string                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BROWSER_TYPE_LEN,4,2           ## @BROWSER_TYPE_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rv:11"

L_.str.1:                               ## @.str.1
	.asciz	"Trident/7.0"

L_.str.2:                               ## @.str.2
	.asciz	"MSIE/11.0"

L_.str.3:                               ## @.str.3
	.asciz	"OPR"

L_.str.4:                               ## @.str.4
	.asciz	"Opera"

L_.str.5:                               ## @.str.5
	.asciz	"MSIE"

L_.str.6:                               ## @.str.6
	.asciz	";)-"

L_.str.7:                               ## @.str.7
	.asciz	";) "

	.no_dead_strip	_parse_browser
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_browser
_parse_browser:                         ; @parse_browser
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x21, x1
	mov	x19, x0
	sxtw	x24, w2
	ldr	x8, [x3, w2, sxtw #3]
	ldr	x0, [x8]
	mov	w1, #32
	bl	_count_matches
	mov	x20, x19
	cbz	x19, LBB0_6
; %bb.1:
	mov	x23, x0
	mov	x20, x19
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x0, #1
	subs	x23, x23, #1
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x20, #0
LBB0_6:
	ldr	x8, [x22, x24, lsl #3]
	ldr	x1, [x8, #8]
Lloh0:
	adrp	x8, _BROWSER_TYPE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BROWSER_TYPE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_xstrncpy
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_9
; %bb.7:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_9
; %bb.8:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_9:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_parse_opera
LBB0_12:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cmp	x0, x19
	b.ls	LBB0_15
; %bb.14:
	mov	x21, x0
	add	x22, x19, #5
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x22
	mov	x1, x21
	bl	_memmove
LBB0_15:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_19
; %bb.16:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_strpbrk
	cbz	x0, LBB0_18
; %bb.17:
	strb	wzr, [x0]
LBB0_18:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #47
	bl	_char_replace
	mov	x19, x0
	b	LBB0_22
LBB0_19:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_strpbrk
	cbz	x0, LBB0_21
; %bb.20:
	strb	wzr, [x0]
LBB0_21:
	mov	x0, x19
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_alloc_string
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BROWSER_TYPE_LEN,4,2           ; @BROWSER_TYPE_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rv:11"

l_.str.1:                               ; @.str.1
	.asciz	"Trident/7.0"

l_.str.2:                               ; @.str.2
	.asciz	"MSIE/11.0"

l_.str.3:                               ; @.str.3
	.asciz	"OPR"

l_.str.4:                               ; @.str.4
	.asciz	"Opera"

l_.str.5:                               ; @.str.5
	.asciz	"MSIE"

l_.str.6:                               ; @.str.6
	.asciz	";)-"

l_.str.7:                               ; @.str.7
	.asciz	";) "

	.no_dead_strip	_parse_browser
.subsections_via_symbols
