	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_registered
_s5k5baf_registered:                    ## @s5k5baf_registered
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_s5k5baf
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rax, %rbx
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_v4l2_device_register_subdev
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_PAD_CIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MEDIA_LNK_FL_IMMUTABLE@GOTPCREL(%rip), %rax
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %esi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_media_create_pad_link          ## TAILCALL
LBB0_1:
	movl	%eax, %r12d
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register subdev %s\n"

	.comm	_PAD_CIS,4,2                    ## @PAD_CIS
	.comm	_MEDIA_LNK_FL_IMMUTABLE,4,2     ## @MEDIA_LNK_FL_IMMUTABLE
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.no_dead_strip	_s5k5baf_registered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_registered
_s5k5baf_registered:                    ; @s5k5baf_registered
	.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	x20, x0
	bl	_to_s5k5baf
	mov	x19, x0
	ldr	w0, [x20]
	add	x21, x19, #4
	mov	x1, x21
	bl	_v4l2_device_register_subdev
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PAD_CIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAD_CIS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MEDIA_LNK_FL_IMMUTABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEDIA_LNK_FL_IMMUTABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x0, x21
	mov	x2, x19
	mov	x3, x1
	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	_media_create_pad_link
LBB0_2:
	mov	x22, x0
	ldr	w2, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register subdev %s\n"

	.comm	_PAD_CIS,4,2                    ; @PAD_CIS
	.comm	_MEDIA_LNK_FL_IMMUTABLE,4,2     ; @MEDIA_LNK_FL_IMMUTABLE
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.no_dead_strip	_s5k5baf_registered
.subsections_via_symbols
