	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmcam_setup_on_open
_ibmcam_setup_on_open:                  ## @ibmcam_setup_on_open
	.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	%rdi, %r14
	callq	_IBMCAM_T
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_IBMCAM_T
	movl	4(%rax), %eax
	cmpl	$130, %eax
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	cmpl	$131, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_ibmcam_model1_setup
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_ibmcam_model2_setup
LBB0_5:
	movl	%eax, %ebx
LBB0_6:
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	setne	%r15b
	movq	%r14, %rdi
	callq	_IBMCAM_T
	movl	%r15d, (%rax)
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ibmcam_setup_on_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmcam_setup_on_open
_ibmcam_setup_on_open:                  ; @ibmcam_setup_on_open
	.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, x0
	bl	_IBMCAM_T
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_IBMCAM_T
	ldr	w8, [x0, #4]
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #131
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_ibmcam_model1_setup
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_ibmcam_model2_setup
LBB0_6:
	mov	x20, x0
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	cmp	w20, #0
	cset	w21, ne
	mov	x0, x19
	bl	_IBMCAM_T
	str	w21, [x0]
LBB0_9:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ibmcam_setup_on_open
.subsections_via_symbols
