	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwc_create_sysfs_files
_pwc_create_sysfs_files:                ## @pwc_create_sysfs_files
	.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	_video_get_drvdata
	movq	%rax, %r15
	movq	_dev_attr_button@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_FEATURE_MOTOR_PANTILT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.2:
	movq	_dev_attr_pan_tilt@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	movq	_dev_attr_button@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	movl	%r15d, %ebx
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_PWC_ERROR
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_button,4,2            ## @dev_attr_button
	.comm	_FEATURE_MOTOR_PANTILT,4,2      ## @FEATURE_MOTOR_PANTILT
	.comm	_dev_attr_pan_tilt,4,2          ## @dev_attr_pan_tilt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create sysfs files.\n"

	.no_dead_strip	_pwc_create_sysfs_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwc_create_sysfs_files
_pwc_create_sysfs_files:                ; @pwc_create_sysfs_files
	.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	_video_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x1, _dev_attr_button@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_button@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x20, x0
	cbz	w0, LBB0_3
LBB0_1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PWC_ERROR
LBB0_2:
	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
LBB0_3:
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _FEATURE_MOTOR_PANTILT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FEATURE_MOTOR_PANTILT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh7:
	adrp	x1, _dev_attr_pan_tilt@GOTPAGE
Lloh8:
	ldr	x1, [x1, _dev_attr_pan_tilt@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.5:
Lloh9:
	adrp	x1, _dev_attr_button@GOTPAGE
Lloh10:
	ldr	x1, [x1, _dev_attr_button@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
	b	LBB0_1
LBB0_6:
	mov	w20, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_button,4,2            ; @dev_attr_button
	.comm	_FEATURE_MOTOR_PANTILT,4,2      ; @FEATURE_MOTOR_PANTILT
	.comm	_dev_attr_pan_tilt,4,2          ; @dev_attr_pan_tilt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create sysfs files.\n"

	.no_dead_strip	_pwc_create_sysfs_files
.subsections_via_symbols
