	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __b44_cam_write
___b44_cam_write:                       ## @__b44_cam_write
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	2(%rsi), %edx
	bswapl	%edx
	movq	_B44_CAM_DATA_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bw32
	movq	_CAM_DATA_HI_VALID@GOTPCREL(%rip), %rax
	movzbl	(%rbx), %ecx
	shll	$8, %ecx
	orl	(%rax), %ecx
	movzbl	1(%rbx), %edx
	orl	%ecx, %edx
	movq	_B44_CAM_DATA_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bw32
	movq	_B44_CAM_CTRL@GOTPCREL(%rip), %rbx
	movq	_CAM_CTRL_INDEX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movl	(%rbx), %esi
	movq	_CAM_CTRL_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_bw32
	movl	(%rbx), %esi
	movq	_CAM_CTRL_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$100, %ecx
	movl	$1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b44_wait_bit                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_CAM_DATA_LO,4,2            ## @B44_CAM_DATA_LO
	.comm	_CAM_DATA_HI_VALID,4,2          ## @CAM_DATA_HI_VALID
	.comm	_B44_CAM_DATA_HI,4,2            ## @B44_CAM_DATA_HI
	.comm	_B44_CAM_CTRL,4,2               ## @B44_CAM_CTRL
	.comm	_CAM_CTRL_WRITE,4,2             ## @CAM_CTRL_WRITE
	.comm	_CAM_CTRL_INDEX_SHIFT,4,2       ## @CAM_CTRL_INDEX_SHIFT
	.comm	_CAM_CTRL_BUSY,4,2              ## @CAM_CTRL_BUSY
	.no_dead_strip	___b44_cam_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __b44_cam_write
___b44_cam_write:                       ; @__b44_cam_write
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldur	w8, [x1, #2]
	rev	w2, w8
Lloh0:
	adrp	x8, _B44_CAM_DATA_LO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B44_CAM_DATA_LO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bw32
Lloh3:
	adrp	x8, _CAM_DATA_HI_VALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAM_DATA_HI_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldrb	w9, [x20]
	orr	w8, w8, w9, lsl #8
	ldrb	w9, [x20, #1]
	orr	w2, w8, w9
Lloh6:
	adrp	x8, _B44_CAM_DATA_HI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B44_CAM_DATA_HI@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_bw32
Lloh9:
	adrp	x20, _B44_CAM_CTRL@GOTPAGE
Lloh10:
	ldr	x20, [x20, _B44_CAM_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _CAM_CTRL_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAM_CTRL_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _CAM_CTRL_INDEX_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CAM_CTRL_INDEX_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w2, w9, w8
	mov	x0, x21
	bl	_bw32
	ldr	w1, [x20]
Lloh17:
	adrp	x8, _CAM_CTRL_BUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CAM_CTRL_BUSY@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #100
	mov	w4, #1
	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
	b	_b44_wait_bit
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_CAM_DATA_LO,4,2            ; @B44_CAM_DATA_LO
	.comm	_CAM_DATA_HI_VALID,4,2          ; @CAM_DATA_HI_VALID
	.comm	_B44_CAM_DATA_HI,4,2            ; @B44_CAM_DATA_HI
	.comm	_B44_CAM_CTRL,4,2               ; @B44_CAM_CTRL
	.comm	_CAM_CTRL_WRITE,4,2             ; @CAM_CTRL_WRITE
	.comm	_CAM_CTRL_INDEX_SHIFT,4,2       ; @CAM_CTRL_INDEX_SHIFT
	.comm	_CAM_CTRL_BUSY,4,2              ; @CAM_CTRL_BUSY
	.no_dead_strip	___b44_cam_write
.subsections_via_symbols
