	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __subdev_set_power
___subdev_set_power:                    ## @__subdev_set_power
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %ecx
	movl	(%rdi), %edx
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	leal	1(%rdx), %eax
	movl	%eax, (%rdi)
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_6
LBB0_7:
	popq	%rbp
	retq
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	testl	%edx, %edx
	je	LBB0_7
## %bb.5:
	leal	-1(%rdx), %esi
	movl	%esi, (%rdi)
	cmpl	$1, %edx
	jg	LBB0_7
LBB0_6:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_power@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_v4l2_subdev_call
	movl	%eax, %ecx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	(%rdx), %edx
	addl	%ecx, %edx
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_core,4,2                       ## @core
	.comm	_s_power,4,2                    ## @s_power
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.no_dead_strip	___subdev_set_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __subdev_set_power
___subdev_set_power:                    ; @__subdev_set_power
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_3
; %bb.1:
	mov	x3, x1
	ldr	w8, [x0]
	cbz	w1, LBB0_4
; %bb.2:
	add	w9, w8, #1
	str	w9, [x0]
	cmp	w8, #0
	b.gt	LBB0_6
	b	LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	cbz	w8, LBB0_6
; %bb.5:
	subs	w8, w8, #1
	str	w8, [x0]
	b.le	LBB0_7
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh3:
	adrp	x8, _core@GOTPAGE
Lloh4:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _s_power@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_power@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_v4l2_subdev_call
Lloh9:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w0, wzr, w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_core,4,2                       ; @core
	.comm	_s_power,4,2                    ; @s_power
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.no_dead_strip	___subdev_set_power
.subsections_via_symbols
