	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_updateiconoffsets
___card_updateiconoffsets:              ## @__card_updateiconoffsets
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r8d
	cmpl	$-1, %r8d
	jne	LBB0_2
## %bb.1:
	movl	$0, (%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rsi)
	xorl	%r8d, %r8d
LBB0_2:
	movl	4(%rdi), %ecx
	movq	_CARD_BANNER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	je	LBB0_9
## %bb.3:
	testb	$16, %cl
	jne	LBB0_8
## %bb.4:
	movq	_CARD_BANNER_CI@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movl	%eax, (%rsi)
	movl	%r8d, 4(%rsi)
	leal	3072(%r8), %eax
	movl	%eax, 8(%rsi)
	addl	$3584, %r8d                     ## imm = 0xE00
	jmp	LBB0_9
LBB0_8:
	movq	$-1, 4(%rsi)
	jmp	LBB0_9
LBB0_6:
	movq	_CARD_BANNER_RGB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.7:
	movl	%eax, (%rsi)
	movl	%r8d, 4(%rsi)
	movl	$-1, 8(%rsi)
	addl	$6144, %r8d                     ## imm = 0x1800
LBB0_9:
	movq	_CARD_MAXICONS@GOTPCREL(%rip), %r9
	cmpq	$0, (%r9)
	je	LBB0_25
## %bb.10:
	movq	16(%rsi), %r10
	movq	24(%rsi), %r11
	xorl	%ecx, %ecx
	movq	_CARD_ICON_MASK@GOTPCREL(%rip), %r14
	movq	_CARD_SPEED_MASK@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	$0, (%r10,%rbx,8)
	xorl	%eax, %eax
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$1, %rax
	sbbl	$-1, %edx
	incq	%rbx
	movq	(%r9), %rax
	addq	$2, %rcx
	cmpq	%rax, %rbx
	jae	LBB0_13
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	shrq	%cl, %rax
	andq	(%r14), %rax
	movq	%rax, (%r10,%rbx,8)
	movq	16(%rdi), %rax
	shrq	%cl, %rax
	andq	(%r15), %rax
	movq	%rax, (%r11,%rbx,8)
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r10,%rbx,8), %rax
	jmp	LBB0_20
LBB0_13:
	testq	%rax, %rax
	je	LBB0_25
## %bb.14:
	shll	$10, %edx
	movq	16(%rsi), %r9
	addl	%r8d, %edx
	xorl	%edi, %edi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%rsi), %rbx
	movl	%r8d, (%rbx,%rdi,4)
	movq	40(%rsi), %rbx
	movl	$-1, (%rbx,%rdi,4)
	addl	$3072, %r8d                     ## imm = 0xC00
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	je	LBB0_25
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rdi,8), %rbx
	cmpq	$3, %rbx
	je	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$2, %rbx
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$1, %rbx
	jne	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%rsi), %rbx
	movl	%r8d, (%rbx,%rdi,4)
	movq	40(%rsi), %rbx
	movl	%edx, (%rbx,%rdi,4)
	addl	$1024, %r8d                     ## imm = 0x400
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%rsi), %rbx
	movl	%r8d, (%rbx,%rdi,4)
	leal	1024(%r8), %ebx
	movq	40(%rsi), %rcx
	movl	%ebx, (%rcx,%rdi,4)
	addl	$1536, %r8d                     ## imm = 0x600
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%rsi), %rcx
	movl	$-1, (%rcx,%rdi,4)
	movq	40(%rsi), %rcx
	movl	$-1, (%rcx,%rdi,4)
	jmp	LBB0_24
LBB0_25:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_BANNER_MASK,4,2           ## @CARD_BANNER_MASK
	.comm	_CARD_BANNER_CI,4,2             ## @CARD_BANNER_CI
	.comm	_CARD_BANNER_RGB,4,2            ## @CARD_BANNER_RGB
	.comm	_CARD_MAXICONS,8,3              ## @CARD_MAXICONS
	.comm	_CARD_ICON_MASK,8,3             ## @CARD_ICON_MASK
	.comm	_CARD_SPEED_MASK,8,3            ## @CARD_SPEED_MASK
	.no_dead_strip	___card_updateiconoffsets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_updateiconoffsets
___card_updateiconoffsets:              ; @__card_updateiconoffsets
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmn	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
	str	wzr, [x1]
	stp	xzr, xzr, [x1, #48]
LBB0_2:
	ldr	w10, [x0, #4]
Lloh0:
	adrp	x9, _CARD_BANNER_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CARD_BANNER_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w9, w9, w10
	b.eq	LBB0_9
; %bb.3:
	tbnz	w10, #4, LBB0_6
; %bb.4:
Lloh3:
	adrp	x10, _CARD_BANNER_CI@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CARD_BANNER_CI@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.5:
	stp	w9, w8, [x1]
	add	w9, w8, #3072
	str	w9, [x1, #8]
	add	w8, w8, #3584
	b	LBB0_9
LBB0_6:
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x1, #4]
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x10, _CARD_BANNER_RGB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CARD_BANNER_RGB@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_9
; %bb.8:
	stp	w9, w8, [x1]
	mov	w9, #-1
	str	w9, [x1, #8]
	mov	w9, #6144
	add	w8, w8, w9
LBB0_9:
Lloh9:
	adrp	x10, _CARD_MAXICONS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CARD_MAXICONS@GOTPAGEOFF]
	ldr	x9, [x10]
	cbz	x9, LBB0_25
; %bb.10:
	mov	x11, #0
	mov	x13, #0
	mov	w12, #0
	ldp	x14, x15, [x1, #16]
Lloh11:
	adrp	x16, _CARD_ICON_MASK@GOTPAGE
Lloh12:
	ldr	x16, [x16, _CARD_ICON_MASK@GOTPAGEOFF]
Lloh13:
	adrp	x17, _CARD_SPEED_MASK@GOTPAGE
Lloh14:
	ldr	x17, [x17, _CARD_SPEED_MASK@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	str	xzr, [x14, x13, lsl #3]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	x9, #0
	cinc	w12, w12, ne
	add	x13, x13, #1
	ldr	x9, [x10]
	add	x11, x11, #2
	cmp	x13, x9
	b.hs	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x0, #8]
	lsr	x9, x9, x11
	ldr	x2, [x16]
	and	x9, x9, x2
	lsl	x2, x13, #3
	str	x9, [x14, x2]
	ldr	x9, [x0, #16]
	lsr	x9, x9, x11
	ldr	x3, [x17]
	ands	x9, x9, x3
	str	x9, [x15, x2]
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x14, x13, lsl #3]
	b	LBB0_12
LBB0_15:
	cbz	x9, LBB0_25
; %bb.16:
	mov	x10, #0
	ldr	x11, [x1, #16]
	add	w12, w8, w12, lsl #10
	mov	w13, #-1
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	lsl	x14, x10, #2
	ldp	x15, x16, [x1, #32]
	str	w8, [x15, x14]
	str	w13, [x16, x14]
	add	w8, w8, #3072
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.eq	LBB0_25
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11, x10, lsl #3]
	cmp	x14, #3
	b.eq	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	x14, #2
	b.eq	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	x14, #1
	b.ne	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	lsl	x14, x10, #2
	ldp	x15, x16, [x1, #32]
	str	w8, [x15, x14]
	str	w12, [x16, x14]
	add	w8, w8, #1024
	b	LBB0_18
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=1
	lsl	x14, x10, #2
	ldp	x15, x16, [x1, #32]
	str	w8, [x15, x14]
	add	w15, w8, #1024
	str	w15, [x16, x14]
	add	w8, w8, #1536
	b	LBB0_18
LBB0_24:                                ;   in Loop: Header=BB0_19 Depth=1
	lsl	x14, x10, #2
	ldp	x15, x16, [x1, #32]
	str	w13, [x15, x14]
	str	w13, [x16, x14]
	b	LBB0_18
LBB0_25:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_BANNER_MASK,4,2           ; @CARD_BANNER_MASK
	.comm	_CARD_BANNER_CI,4,2             ; @CARD_BANNER_CI
	.comm	_CARD_BANNER_RGB,4,2            ; @CARD_BANNER_RGB
	.comm	_CARD_MAXICONS,8,3              ; @CARD_MAXICONS
	.comm	_CARD_ICON_MASK,8,3             ; @CARD_ICON_MASK
	.comm	_CARD_SPEED_MASK,8,3            ; @CARD_SPEED_MASK
	.no_dead_strip	___card_updateiconoffsets
.subsections_via_symbols
