	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmcam_model2_setup
_ibmcam_model2_setup:                   ## @ibmcam_model2_setup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$278, %ecx                      ## imm = 0x116
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$96, %edx
	movl	$278, %ecx                      ## imm = 0x116
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$274, %ecx                      ## imm = 0x112
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$188, %edx
	movl	$300, %ecx                      ## imm = 0x12C
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	movl	$299, %ecx                      ## imm = 0x12B
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$264, %ecx                      ## imm = 0x108
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$307, %ecx                      ## imm = 0x133
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$258, %ecx                      ## imm = 0x102
	callq	_ibmcam_veio
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	L_switch.table.ibmcam_model2_setup(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	L_switch.table.ibmcam_model2_setup.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r13d
	leaq	L_switch.table.ibmcam_model2_setup.2(%rip), %rcx
	movl	(%rcx,%rax,4), %r12d
	leaq	L_switch.table.ibmcam_model2_setup.3(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	leaq	L_switch.table.ibmcam_model2_setup.4(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$259, %ecx                      ## imm = 0x103
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$260, %ecx                      ## imm = 0x104
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	$261, %ecx                      ## imm = 0x105
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	$266, %ecx                      ## imm = 0x10A
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	$281, %ecx                      ## imm = 0x119
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	movl	$262, %ecx                      ## imm = 0x106
	callq	_ibmcam_veio
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	xorl	%r14d, %r14d
	movl	$263, %ecx                      ## imm = 0x107
	callq	_ibmcam_veio
LBB0_2:
	movq	%rbx, %rdi
	callq	_CAMERA_IS_OPERATIONAL
	movq	_EFAULT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testq	%rax, %rax
	cmovnel	%r14d, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_ibmcam_model2_setup
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.ibmcam_model2_setup
L_switch.table.ibmcam_model2_setup:
	.long	44                              ## 0x2c
	.long	44                              ## 0x2c
	.long	40                              ## 0x28
	.long	44                              ## 0x2c

	.p2align	2                               ## @switch.table.ibmcam_model2_setup.1
L_switch.table.ibmcam_model2_setup.1:
	.long	36                              ## 0x24
	.long	30                              ## 0x1e
	.long	30                              ## 0x1e
	.long	36                              ## 0x24

	.p2align	2                               ## @switch.table.ibmcam_model2_setup.2
L_switch.table.ibmcam_model2_setup.2:
	.long	57                              ## 0x39
	.long	57                              ## 0x39
	.long	57                              ## 0x39
	.long	185                             ## 0xb9

	.p2align	2                               ## @switch.table.ibmcam_model2_setup.3
L_switch.table.ibmcam_model2_setup.3:
	.long	112                             ## 0x70
	.long	112                             ## 0x70
	.long	112                             ## 0x70
	.long	56                              ## 0x38

	.p2align	2                               ## @switch.table.ibmcam_model2_setup.4
L_switch.table.ibmcam_model2_setup.4:
	.long	254                             ## 0xfe
	.long	218                             ## 0xda
	.long	152                             ## 0x98
	.long	144                             ## 0x90

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmcam_model2_setup
_ibmcam_model2_setup:                   ; @ibmcam_model2_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #256
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	w3, #278
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #96
	mov	w3, #278
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	w3, #274
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #188
	mov	w3, #300
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	mov	w3, #299
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #264
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #307
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #258
	bl	_ibmcam_veio
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #2, #32
Lloh0:
	adrp	x9, l_switch.table.ibmcam_model2_setup@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ibmcam_model2_setup@PAGEOFF
	ldr	w2, [x9, x8]
Lloh2:
	adrp	x9, l_switch.table.ibmcam_model2_setup.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.ibmcam_model2_setup.1@PAGEOFF
	ldr	w20, [x9, x8]
Lloh4:
	adrp	x9, l_switch.table.ibmcam_model2_setup.2@PAGE
Lloh5:
	add	x9, x9, l_switch.table.ibmcam_model2_setup.2@PAGEOFF
	ldr	w21, [x9, x8]
Lloh6:
	adrp	x9, l_switch.table.ibmcam_model2_setup.3@PAGE
Lloh7:
	add	x9, x9, l_switch.table.ibmcam_model2_setup.3@PAGEOFF
	ldr	w22, [x9, x8]
Lloh8:
	adrp	x9, l_switch.table.ibmcam_model2_setup.4@PAGE
Lloh9:
	add	x9, x9, l_switch.table.ibmcam_model2_setup.4@PAGEOFF
	ldr	w23, [x9, x8]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #259
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #260
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	w3, #261
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	mov	w3, #266
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	mov	w3, #281
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	w2, #3
	mov	w3, #262
	bl	_ibmcam_veio
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	mov	w3, #263
	bl	_ibmcam_veio
LBB0_2:
	mov	x0, x19
	bl	_CAMERA_IS_OPERATIONAL
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_ibmcam_model2_setup
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.ibmcam_model2_setup
l_switch.table.ibmcam_model2_setup:
	.long	44                              ; 0x2c
	.long	44                              ; 0x2c
	.long	40                              ; 0x28
	.long	44                              ; 0x2c

	.p2align	2                               ; @switch.table.ibmcam_model2_setup.1
l_switch.table.ibmcam_model2_setup.1:
	.long	36                              ; 0x24
	.long	30                              ; 0x1e
	.long	30                              ; 0x1e
	.long	36                              ; 0x24

	.p2align	2                               ; @switch.table.ibmcam_model2_setup.2
l_switch.table.ibmcam_model2_setup.2:
	.long	57                              ; 0x39
	.long	57                              ; 0x39
	.long	57                              ; 0x39
	.long	185                             ; 0xb9

	.p2align	2                               ; @switch.table.ibmcam_model2_setup.3
l_switch.table.ibmcam_model2_setup.3:
	.long	112                             ; 0x70
	.long	112                             ; 0x70
	.long	112                             ; 0x70
	.long	56                              ; 0x38

	.p2align	2                               ; @switch.table.ibmcam_model2_setup.4
l_switch.table.ibmcam_model2_setup.4:
	.long	254                             ; 0xfe
	.long	218                             ; 0xda
	.long	152                             ; 0x98
	.long	144                             ; 0x90

.subsections_via_symbols
