	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubbub2_get_dcc_compression_cap ## -- Begin function hubbub2_get_dcc_compression_cap
	.p2align	4, 0x90
_hubbub2_get_dcc_compression_cap:       ## @hubbub2_get_dcc_compression_cap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	xorl	%r14d, %r14d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	(%r13), %rax
	movq	_DCC_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.1:
	movq	(%rbx), %rax
	movl	24(%r12), %edi
	leaq	-44(%rbp), %rsi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_23
## %bb.2:
	movq	(%rbx), %rax
	movq	(%r12), %rdi
	movl	-44(%rbp), %esi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_23
## %bb.3:
	movl	16(%r12), %esi
	movl	20(%r12), %edi
	movl	-44(%rbp), %edx
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	callq	_hubbub2_det_request_size
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %ecx
	movl	$129, %eax
	movl	%edx, %esi
	orl	%ecx, %esi
	je	LBB0_16
## %bb.4:
	movq	8(%r12), %rsi
	movq	_SCAN_DIRECTION_HORIZONTAL@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_8
## %bb.5:
	testl	%edx, %edx
	je	LBB0_16
## %bb.6:
	movl	-52(%rbp), %eax
	jmp	LBB0_7
LBB0_8:
	movq	_SCAN_DIRECTION_VERTICAL@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_11
## %bb.9:
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.10:
	movl	-48(%rbp), %eax
LBB0_7:
	movq	_segment_order__contiguous@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	leal	(%rdx,%rdx), %eax
	addl	$128, %eax
	jmp	LBB0_16
LBB0_11:
	testl	%edx, %edx
	je	LBB0_13
## %bb.12:
	movl	-52(%rbp), %edx
	movq	_segment_order__non_contiguous@GOTPCREL(%rip), %rsi
	movl	$128, %eax
	cmpl	(%rsi), %edx
	je	LBB0_16
LBB0_13:
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.14:
	movl	-48(%rbp), %ecx
	movq	_segment_order__non_contiguous@GOTPCREL(%rip), %rdx
	movl	$128, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_16
LBB0_15:
	movl	$130, %eax
LBB0_16:
	cmpl	$2, -44(%rbp)
	jne	LBB0_18
## %bb.17:
	movq	(%r12), %rcx
	movq	_DC_SW_64KB_R_X@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	$130, %ecx
	cmovel	%ecx, %eax
LBB0_18:
	cmpl	$129, %eax
	je	LBB0_20
## %bb.19:
	movq	_DCC_HALF_REQ_DISALBE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%r13)
	je	LBB0_23
LBB0_20:
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_22
## %bb.21:
	cltq
	leaq	l_switch.table.hubbub2_get_dcc_compression_cap(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	l_switch.table.hubbub2_get_dcc_compression_cap.1(%rip), %rdx
	movl	(%rdx,%rax,4), %edx
	leaq	l_switch.table.hubbub2_get_dcc_compression_cap.2(%rip), %rsi
	movl	(%rsi,%rax,4), %eax
	movl	%ecx, 8(%r15)
	movl	%edx, 12(%r15)
	movl	%eax, 16(%r15)
LBB0_22:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r15)
	movl	$1, %r14d
LBB0_23:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCC_DISABLE,8,3                ## @DCC_DISABLE
	.comm	_SCAN_DIRECTION_HORIZONTAL,8,3  ## @SCAN_DIRECTION_HORIZONTAL
	.comm	_segment_order__contiguous,4,2  ## @segment_order__contiguous
	.comm	_SCAN_DIRECTION_VERTICAL,8,3    ## @SCAN_DIRECTION_VERTICAL
	.comm	_segment_order__non_contiguous,4,2 ## @segment_order__non_contiguous
	.comm	_DC_SW_64KB_R_X,8,3             ## @DC_SW_64KB_R_X
	.comm	_DCC_HALF_REQ_DISALBE,8,3       ## @DCC_HALF_REQ_DISALBE
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.hubbub2_get_dcc_compression_cap
l_switch.table.hubbub2_get_dcc_compression_cap:
	.long	256                             ## 0x100
	.long	256                             ## 0x100
	.long	128                             ## 0x80

	.p2align	2                               ## @switch.table.hubbub2_get_dcc_compression_cap.1
l_switch.table.hubbub2_get_dcc_compression_cap.1:
	.long	64                              ## 0x40
	.long	256                             ## 0x100
	.long	128                             ## 0x80

	.p2align	2                               ## @switch.table.hubbub2_get_dcc_compression_cap.2
l_switch.table.hubbub2_get_dcc_compression_cap.2:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubbub2_get_dcc_compression_cap ; -- Begin function hubbub2_get_dcc_compression_cap
	.p2align	2
_hubbub2_get_dcc_compression_cap:       ; @hubbub2_get_dcc_compression_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	mov	w0, #0
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _DCC_DISABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCC_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w0, [x20, #24]
	add	x1, sp, #28
	blr	x8
	cbz	w0, LBB0_20
; %bb.2:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x0, [x20]
	ldr	w1, [sp, #28]
	add	x2, sp, #24
	add	x3, sp, #20
	blr	x8
	cbz	w0, LBB0_20
; %bb.3:
	ldp	w1, w0, [x20, #16]
	ldr	w2, [sp, #28]
	add	x3, sp, #16
	add	x4, sp, #12
	bl	_hubbub2_det_request_size
	ldp	w8, w9, [sp, #12]
	orr	w10, w9, w8
	cbz	w10, LBB0_11
; %bb.4:
	ldr	x10, [x20, #8]
Lloh3:
	adrp	x11, _SCAN_DIRECTION_HORIZONTAL@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SCAN_DIRECTION_HORIZONTAL@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.5:
	cbz	w9, LBB0_11
; %bb.6:
Lloh6:
	adrp	x8, _segment_order__contiguous@GOTPAGE
Lloh7:
	ldr	x8, [x8, _segment_order__contiguous@GOTPAGEOFF]
	ldr	w9, [sp, #24]
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x11, _SCAN_DIRECTION_VERTICAL@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SCAN_DIRECTION_VERTICAL@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_21
; %bb.8:
	cbz	w8, LBB0_11
; %bb.9:
Lloh11:
	adrp	x8, _segment_order__contiguous@GOTPAGE
Lloh12:
	ldr	x8, [x8, _segment_order__contiguous@GOTPAGEOFF]
	ldr	w9, [sp, #20]
LBB0_10:
	ldr	w8, [x8]
	mov	w10, #128
	mov	w11, #130
	cmp	w9, w8
	csel	w8, w11, w10, eq
	b	LBB0_12
LBB0_11:
	mov	w8, #129
LBB0_12:
	ldr	w9, [sp, #28]
	cmp	w9, #2
	b.ne	LBB0_14
; %bb.13:
	ldr	x9, [x20]
Lloh13:
	adrp	x10, _DC_SW_64KB_R_X@GOTPAGE
Lloh14:
	ldr	x10, [x10, _DC_SW_64KB_R_X@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #130
	csel	w8, w9, w8, eq
LBB0_14:
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.15:
	ldr	x9, [x22]
Lloh16:
	adrp	x10, _DCC_HALF_REQ_DISALBE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DCC_HALF_REQ_DISALBE@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.16:
	mov	w0, #0
	b	LBB0_20
LBB0_17:
	mov	w8, w8
	sub	x8, x8, #128
	cmp	w8, #2
	b.hi	LBB0_19
; %bb.18:
Lloh19:
	adrp	x9, l_switch.table.hubbub2_get_dcc_compression_cap@PAGE
Lloh20:
	add	x9, x9, l_switch.table.hubbub2_get_dcc_compression_cap@PAGEOFF
	ldr	w9, [x9, x8, lsl #2]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sbfiz	x8, x8, #2, #32
Lloh21:
	adrp	x10, l_switch.table.hubbub2_get_dcc_compression_cap.1@PAGE
Lloh22:
	add	x10, x10, l_switch.table.hubbub2_get_dcc_compression_cap.1@PAGEOFF
	ldr	w10, [x10, x8]
Lloh23:
	adrp	x11, l_switch.table.hubbub2_get_dcc_compression_cap.2@PAGE
Lloh24:
	add	x11, x11, l_switch.table.hubbub2_get_dcc_compression_cap.2@PAGEOFF
	ldr	w8, [x11, x8]
	stp	w9, w10, [x19, #8]
	str	w8, [x19, #16]
LBB0_19:
	movi.2s	v0, #1
	str	d0, [x19]
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_21:
Lloh25:
	adrp	x10, _segment_order__non_contiguous@GOTPAGE
Lloh26:
	ldr	x10, [x10, _segment_order__non_contiguous@GOTPAGEOFF]
	cbz	w9, LBB0_23
; %bb.22:
	ldr	w9, [sp, #24]
	ldr	w11, [x10]
	cmp	w9, w11
	b.eq	LBB0_25
LBB0_23:
	cbz	w8, LBB0_26
; %bb.24:
	ldr	w8, [sp, #20]
	ldr	w9, [x10]
	cmp	w8, w9
	b.ne	LBB0_26
LBB0_25:
	mov	w8, #128
	b	LBB0_12
LBB0_26:
	mov	w8, #130
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DCC_DISABLE,8,3                ; @DCC_DISABLE
	.comm	_SCAN_DIRECTION_HORIZONTAL,8,3  ; @SCAN_DIRECTION_HORIZONTAL
	.comm	_segment_order__contiguous,4,2  ; @segment_order__contiguous
	.comm	_SCAN_DIRECTION_VERTICAL,8,3    ; @SCAN_DIRECTION_VERTICAL
	.comm	_segment_order__non_contiguous,4,2 ; @segment_order__non_contiguous
	.comm	_DC_SW_64KB_R_X,8,3             ; @DC_SW_64KB_R_X
	.comm	_DCC_HALF_REQ_DISALBE,8,3       ; @DCC_HALF_REQ_DISALBE
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.hubbub2_get_dcc_compression_cap
l_switch.table.hubbub2_get_dcc_compression_cap:
	.long	256                             ; 0x100
	.long	256                             ; 0x100
	.long	128                             ; 0x80

	.p2align	2                               ; @switch.table.hubbub2_get_dcc_compression_cap.1
l_switch.table.hubbub2_get_dcc_compression_cap.1:
	.long	64                              ; 0x40
	.long	256                             ; 0x100
	.long	128                             ; 0x80

	.p2align	2                               ; @switch.table.hubbub2_get_dcc_compression_cap.2
l_switch.table.hubbub2_get_dcc_compression_cap.2:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
