	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb710_encode_cmd_flags
_cb710_encode_cmd_flags:                ## @cb710_encode_cmd_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %r8d
	movq	_MMC_CMD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r8d, %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_CB710_MMC_CMD_BCR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_CB710_MMC_CMD_BC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_CB710_MMC_CMD_ADTC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_CB710_MMC_CMD_AC@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	movq	_MMC_RSP_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	%r8d, %edi
	je	LBB0_10
## %bb.9:
	movq	_CB710_MMC_RSP_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_10:
	movl	4(%rsi), %edx
	movq	_CB710_MMC_CMD_CODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%edx, %eax
	orl	%edi, %eax
	movq	8(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_CB710_MMC_DATA_READ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_13:
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rcx
	testl	%r8d, (%rcx)
	je	LBB0_18
## %bb.14:
	movq	_CB710_MMC_RSP_PRESENT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r8d, %ecx
	je	LBB0_16
## %bb.15:
	movq	_CB710_MMC_RSP_136@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:
	orl	%ecx, %eax
	movq	_MMC_RSP_CRC@GOTPCREL(%rip), %rcx
	testl	%r8d, (%rcx)
	je	LBB0_17
LBB0_18:
	popq	%rbp
	retq
LBB0_17:
	movq	_CB710_MMC_RSP_NO_CRC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_MMC_CMD_MASK,4,2               ## @MMC_CMD_MASK
	.comm	_CB710_MMC_CMD_AC,4,2           ## @CB710_MMC_CMD_AC
	.comm	_CB710_MMC_CMD_ADTC,4,2         ## @CB710_MMC_CMD_ADTC
	.comm	_CB710_MMC_CMD_BC,4,2           ## @CB710_MMC_CMD_BC
	.comm	_CB710_MMC_CMD_BCR,4,2          ## @CB710_MMC_CMD_BCR
	.comm	_MMC_RSP_BUSY,4,2               ## @MMC_RSP_BUSY
	.comm	_CB710_MMC_RSP_BUSY,4,2         ## @CB710_MMC_RSP_BUSY
	.comm	_CB710_MMC_CMD_CODE_SHIFT,4,2   ## @CB710_MMC_CMD_CODE_SHIFT
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_CB710_MMC_DATA_READ,4,2        ## @CB710_MMC_DATA_READ
	.comm	_MMC_RSP_PRESENT,4,2            ## @MMC_RSP_PRESENT
	.comm	_CB710_MMC_RSP_PRESENT,4,2      ## @CB710_MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_CB710_MMC_RSP_136,4,2          ## @CB710_MMC_RSP_136
	.comm	_MMC_RSP_CRC,4,2                ## @MMC_RSP_CRC
	.comm	_CB710_MMC_RSP_NO_CRC,4,2       ## @CB710_MMC_RSP_NO_CRC
	.no_dead_strip	_cb710_encode_cmd_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb710_encode_cmd_flags
_cb710_encode_cmd_flags:                ; @cb710_encode_cmd_flags
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _MMC_CMD_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_CMD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh5:
	adrp	x9, _CB710_MMC_CMD_BCR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CB710_MMC_CMD_BCR@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	w9, #0
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x9, _CB710_MMC_CMD_BC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CB710_MMC_CMD_BC@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x9, _CB710_MMC_CMD_ADTC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CB710_MMC_CMD_ADTC@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x9, _CB710_MMC_CMD_AC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CB710_MMC_CMD_AC@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
LBB0_8:
Lloh13:
	adrp	x10, _MMC_RSP_BUSY@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MMC_RSP_BUSY@GOTPAGEOFF]
Lloh15:
	adrp	x11, _CB710_MMC_RSP_BUSY@GOTPAGE
Lloh16:
	ldr	x11, [x11, _CB710_MMC_RSP_BUSY@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w9, w10, w9
	ldr	w10, [x1, #4]
Lloh19:
	adrp	x11, _CB710_MMC_CMD_CODE_SHIFT@GOTPAGE
Lloh20:
	ldr	x11, [x11, _CB710_MMC_CMD_CODE_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w0, w9, w10
	ldr	x9, [x1, #8]
	cbz	x9, LBB0_11
; %bb.9:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _MMC_DATA_READ@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MMC_DATA_READ@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
Lloh25:
	adrp	x9, _CB710_MMC_DATA_READ@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CB710_MMC_DATA_READ@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w0, w9, w0
LBB0_11:
Lloh28:
	adrp	x9, _MMC_RSP_PRESENT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh31:
	adrp	x9, _CB710_MMC_RSP_PRESENT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CB710_MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _MMC_RSP_136@GOTPAGE
Lloh35:
	ldr	x10, [x10, _MMC_RSP_136@GOTPAGEOFF]
	orr	w9, w9, w0
Lloh36:
	ldr	w10, [x10]
Lloh37:
	adrp	x11, _CB710_MMC_RSP_136@GOTPAGE
Lloh38:
	ldr	x11, [x11, _CB710_MMC_RSP_136@GOTPAGEOFF]
Lloh39:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w0, w9, w10
Lloh40:
	adrp	x9, _MMC_RSP_CRC@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MMC_RSP_CRC@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_13:
	ret
LBB0_14:
Lloh43:
	adrp	x8, _CB710_MMC_RSP_NO_CRC@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CB710_MMC_RSP_NO_CRC@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_MMC_CMD_MASK,4,2               ; @MMC_CMD_MASK
	.comm	_CB710_MMC_CMD_AC,4,2           ; @CB710_MMC_CMD_AC
	.comm	_CB710_MMC_CMD_ADTC,4,2         ; @CB710_MMC_CMD_ADTC
	.comm	_CB710_MMC_CMD_BC,4,2           ; @CB710_MMC_CMD_BC
	.comm	_CB710_MMC_CMD_BCR,4,2          ; @CB710_MMC_CMD_BCR
	.comm	_MMC_RSP_BUSY,4,2               ; @MMC_RSP_BUSY
	.comm	_CB710_MMC_RSP_BUSY,4,2         ; @CB710_MMC_RSP_BUSY
	.comm	_CB710_MMC_CMD_CODE_SHIFT,4,2   ; @CB710_MMC_CMD_CODE_SHIFT
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_CB710_MMC_DATA_READ,4,2        ; @CB710_MMC_DATA_READ
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_CB710_MMC_RSP_PRESENT,4,2      ; @CB710_MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_CB710_MMC_RSP_136,4,2          ; @CB710_MMC_RSP_136
	.comm	_MMC_RSP_CRC,4,2                ; @MMC_RSP_CRC
	.comm	_CB710_MMC_RSP_NO_CRC,4,2       ; @CB710_MMC_RSP_NO_CRC
	.no_dead_strip	_cb710_encode_cmd_flags
.subsections_via_symbols
