	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __b44_cam_read
___b44_cam_read:                        ## @__b44_cam_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_B44_CAM_CTRL@GOTPCREL(%rip), %r15
	movq	_CAM_CTRL_INDEX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	(%r15), %esi
	movq	_CAM_CTRL_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_bw32
	movl	(%r15), %esi
	movq	_CAM_CTRL_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$100, %ecx
	movl	$1, %r8d
	callq	_b44_wait_bit
	movq	_B44_CAM_DATA_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_br32
	bswapl	%eax
	movl	%eax, 2(%r14)
	movq	_B44_CAM_DATA_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_br32
	rolw	$8, %ax
	movw	%ax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_CAM_CTRL,4,2               ## @B44_CAM_CTRL
	.comm	_CAM_CTRL_READ,4,2              ## @CAM_CTRL_READ
	.comm	_CAM_CTRL_INDEX_SHIFT,4,2       ## @CAM_CTRL_INDEX_SHIFT
	.comm	_CAM_CTRL_BUSY,4,2              ## @CAM_CTRL_BUSY
	.comm	_B44_CAM_DATA_LO,4,2            ## @B44_CAM_DATA_LO
	.comm	_B44_CAM_DATA_HI,4,2            ## @B44_CAM_DATA_HI
	.no_dead_strip	___b44_cam_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __b44_cam_read
___b44_cam_read:                        ; @__b44_cam_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _B44_CAM_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _B44_CAM_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _CAM_CTRL_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAM_CTRL_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CAM_CTRL_INDEX_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CAM_CTRL_INDEX_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w2, w9
	orr	w2, w9, w8
	bl	_bw32
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _CAM_CTRL_BUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAM_CTRL_BUSY@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #100
	mov	w4, #1
	bl	_b44_wait_bit
Lloh11:
	adrp	x8, _B44_CAM_DATA_LO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B44_CAM_DATA_LO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_br32
	lsr	w8, w0, #24
	strb	w8, [x19, #2]
	lsr	w8, w0, #16
	strb	w8, [x19, #3]
	rev	w8, w0
	stur	w8, [x19, #2]
Lloh14:
	adrp	x8, _B44_CAM_DATA_HI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B44_CAM_DATA_HI@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_br32
	rev	w8, w0
	lsr	w8, w8, #16
	strh	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_CAM_CTRL,4,2               ; @B44_CAM_CTRL
	.comm	_CAM_CTRL_READ,4,2              ; @CAM_CTRL_READ
	.comm	_CAM_CTRL_INDEX_SHIFT,4,2       ; @CAM_CTRL_INDEX_SHIFT
	.comm	_CAM_CTRL_BUSY,4,2              ; @CAM_CTRL_BUSY
	.comm	_B44_CAM_DATA_LO,4,2            ; @B44_CAM_DATA_LO
	.comm	_B44_CAM_DATA_HI,4,2            ; @B44_CAM_DATA_HI
	.no_dead_strip	___b44_cam_read
.subsections_via_symbols
