	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_ad_ctrl
_to_ad_ctrl:                            ## @to_ad_ctrl
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AFBC_FORMAT_MOD_BLOCK_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%edi, %ecx
	movq	_AFBC_FORMAT_MOD_BLOCK_SIZE_32x8@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_4
## %bb.3:
	movq	_AD_WB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	_AD_AEN@GOTPCREL(%rip), %rcx
	movq	_AFBC_FORMAT_MOD_YTR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%edi, %edx
	je	LBB0_6
## %bb.5:
	movq	_AD_YT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	(%rcx), %eax
	movq	_AFBC_FORMAT_MOD_SPLIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	je	LBB0_8
## %bb.7:
	movq	_AD_BS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	orl	%edx, %eax
	movq	_AFBC_FORMAT_MOD_TILED@GOTPCREL(%rip), %rdx
	andl	(%rdx), %edi
	je	LBB0_10
## %bb.9:
	movq	_AD_TH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_10:
	orl	%edi, %ecx
	orl	%ecx, %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD_AEN,4,2                     ## @AD_AEN
	.comm	_AFBC_FORMAT_MOD_BLOCK_SIZE_MASK,4,2 ## @AFBC_FORMAT_MOD_BLOCK_SIZE_MASK
	.comm	_AFBC_FORMAT_MOD_BLOCK_SIZE_32x8,4,2 ## @AFBC_FORMAT_MOD_BLOCK_SIZE_32x8
	.comm	_AD_WB,4,2                      ## @AD_WB
	.comm	_AFBC_FORMAT_MOD_YTR,4,2        ## @AFBC_FORMAT_MOD_YTR
	.comm	_AD_YT,4,2                      ## @AD_YT
	.comm	_AFBC_FORMAT_MOD_SPLIT,4,2      ## @AFBC_FORMAT_MOD_SPLIT
	.comm	_AD_BS,4,2                      ## @AD_BS
	.comm	_AFBC_FORMAT_MOD_TILED,4,2      ## @AFBC_FORMAT_MOD_TILED
	.comm	_AD_TH,4,2                      ## @AD_TH
	.no_dead_strip	_to_ad_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_ad_ctrl
_to_ad_ctrl:                            ; @to_ad_ctrl
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AD_AEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD_AEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AFBC_FORMAT_MOD_BLOCK_SIZE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AFBC_FORMAT_MOD_BLOCK_SIZE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh6:
	adrp	x10, _AFBC_FORMAT_MOD_BLOCK_SIZE_32x8@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AFBC_FORMAT_MOD_BLOCK_SIZE_32x8@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _AD_WB@GOTPAGE
Lloh10:
	ldr	x11, [x11, _AD_WB@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	w9, w10
	csel	w9, w11, wzr, eq
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _AFBC_FORMAT_MOD_YTR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AFBC_FORMAT_MOD_YTR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _AD_YT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AD_YT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _AFBC_FORMAT_MOD_SPLIT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AFBC_FORMAT_MOD_SPLIT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _AD_BS@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AD_BS@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _AFBC_FORMAT_MOD_TILED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AFBC_FORMAT_MOD_TILED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _AD_TH@GOTPAGE
Lloh28:
	ldr	x10, [x10, _AD_TH@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AD_AEN,4,2                     ; @AD_AEN
	.comm	_AFBC_FORMAT_MOD_BLOCK_SIZE_MASK,4,2 ; @AFBC_FORMAT_MOD_BLOCK_SIZE_MASK
	.comm	_AFBC_FORMAT_MOD_BLOCK_SIZE_32x8,4,2 ; @AFBC_FORMAT_MOD_BLOCK_SIZE_32x8
	.comm	_AD_WB,4,2                      ; @AD_WB
	.comm	_AFBC_FORMAT_MOD_YTR,4,2        ; @AFBC_FORMAT_MOD_YTR
	.comm	_AD_YT,4,2                      ; @AD_YT
	.comm	_AFBC_FORMAT_MOD_SPLIT,4,2      ; @AFBC_FORMAT_MOD_SPLIT
	.comm	_AD_BS,4,2                      ; @AD_BS
	.comm	_AFBC_FORMAT_MOD_TILED,4,2      ; @AFBC_FORMAT_MOD_TILED
	.comm	_AD_TH,4,2                      ; @AD_TH
	.no_dead_strip	_to_ad_ctrl
.subsections_via_symbols
