	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camdd_ccb_status               ## -- Begin function camdd_ccb_status
	.p2align	4, 0x90
_camdd_ccb_status:                      ## @camdd_ccb_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movq	_CAM_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ecx, %edx
	cmpl	$138, %esi
	je	LBB0_7
## %bb.1:
	movq	_CAMDD_STATUS_ERROR@GOTPCREL(%rip), %rax
	cmpl	$137, %esi
	jne	LBB0_11
## %bb.2:
	cmpl	$139, %edx
	je	LBB0_9
## %bb.3:
	cmpl	$140, %edx
	jne	LBB0_11
## %bb.4:
	movl	4(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	cmpl	%eax, 8(%rdi)
	jle	LBB0_13
## %bb.6:
	movq	_CAMDD_STATUS_SHORT_IO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	cmpl	$140, %edx
	jne	LBB0_12
LBB0_10:
	movq	_CAMDD_STATUS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	addl	$-130, %ecx
	cmpl	$4, %ecx
	jb	LBB0_10
LBB0_12:
	movq	_CAMDD_STATUS_ERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_13:
	movq	_CAMDD_STATUS_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_CAMDD_STATUS_NONE,4,2          ## @CAMDD_STATUS_NONE
	.comm	_CAM_STATUS_MASK,4,2            ## @CAM_STATUS_MASK
	.comm	_CAMDD_STATUS_OK,4,2            ## @CAMDD_STATUS_OK
	.comm	_CAMDD_STATUS_SHORT_IO,4,2      ## @CAMDD_STATUS_SHORT_IO
	.comm	_CAMDD_STATUS_EOF,4,2           ## @CAMDD_STATUS_EOF
	.comm	_CAMDD_STATUS_ERROR,4,2         ## @CAMDD_STATUS_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camdd_ccb_status               ; -- Begin function camdd_ccb_status
	.p2align	2
_camdd_ccb_status:                      ; @camdd_ccb_status
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CAM_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAM_STATUS_MASK@GOTPAGEOFF]
	ldr	w10, [x0]
Lloh2:
	ldr	w8, [x8]
	and	w9, w8, w10
Lloh3:
	adrp	x8, _CAMDD_STATUS_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAMDD_STATUS_ERROR@GOTPAGEOFF]
	cmp	w1, #138
	b.eq	LBB0_6
; %bb.1:
	cmp	w1, #137
	b.ne	LBB0_7
; %bb.2:
Lloh5:
	adrp	x8, _CAMDD_STATUS_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAMDD_STATUS_ERROR@GOTPAGEOFF]
	cmp	w9, #139
	b.eq	LBB0_8
; %bb.3:
	cmp	w9, #140
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_9
; %bb.5:
	ldr	w9, [x0, #8]
Lloh7:
	adrp	x10, _CAMDD_STATUS_EOF@GOTPAGE
Lloh8:
	ldr	x10, [x10, _CAMDD_STATUS_EOF@GOTPAGEOFF]
Lloh9:
	adrp	x11, _CAMDD_STATUS_SHORT_IO@GOTPAGE
Lloh10:
	ldr	x11, [x11, _CAMDD_STATUS_SHORT_IO@GOTPAGEOFF]
	cmp	w9, w8
	csel	x8, x11, x10, gt
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh11:
	adrp	x10, _CAMDD_STATUS_OK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CAMDD_STATUS_OK@GOTPAGEOFF]
	cmp	w9, #140
	csel	x8, x10, x8, eq
LBB0_7:
	ldr	w0, [x8]
	ret
LBB0_8:
	sub	w9, w10, #130
Lloh13:
	adrp	x10, _CAMDD_STATUS_OK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CAMDD_STATUS_OK@GOTPAGEOFF]
	cmp	w9, #4
	csel	x8, x10, x8, lo
	ldr	w0, [x8]
	ret
LBB0_9:
Lloh15:
	adrp	x8, _CAMDD_STATUS_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAMDD_STATUS_OK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CAMDD_STATUS_NONE,4,2          ; @CAMDD_STATUS_NONE
	.comm	_CAM_STATUS_MASK,4,2            ; @CAM_STATUS_MASK
	.comm	_CAMDD_STATUS_OK,4,2            ; @CAMDD_STATUS_OK
	.comm	_CAMDD_STATUS_SHORT_IO,4,2      ; @CAMDD_STATUS_SHORT_IO
	.comm	_CAMDD_STATUS_EOF,4,2           ; @CAMDD_STATUS_EOF
	.comm	_CAMDD_STATUS_ERROR,4,2         ; @CAMDD_STATUS_ERROR
.subsections_via_symbols
