	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_registered
_smiapp_registered:                     ## @smiapp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_smiapp_sensor
	movq	%rax, %r15
	movq	16(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rsi
	movq	_SMIAPP_PAD_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SMIAPP_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	movq	_MEDIA_LNK_FL_IMMUTABLE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r9d
	orl	(%rax), %r9d
	movq	%r15, %rdi
	callq	_smiapp_register_subdev
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	movq	_SMIAPP_PA_PAD_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SMIAPP_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	movq	_MEDIA_LNK_FL_IMMUTABLE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r9d
	orl	(%rax), %r9d
	movq	%r15, %rdi
	callq	_smiapp_register_subdev
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_smiapp_unregistered
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIAPP_PAD_SRC,4,2             ## @SMIAPP_PAD_SRC
	.comm	_SMIAPP_PAD_SINK,4,2            ## @SMIAPP_PAD_SINK
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.comm	_MEDIA_LNK_FL_IMMUTABLE,4,2     ## @MEDIA_LNK_FL_IMMUTABLE
	.comm	_SMIAPP_PA_PAD_SRC,4,2          ## @SMIAPP_PA_PAD_SRC
	.no_dead_strip	_smiapp_registered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_registered
_smiapp_registered:                     ; @smiapp_registered
	.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
	bl	_to_smiapp_sensor
	mov	x20, x0
	ldr	x2, [x0, #16]
Lloh0:
	adrp	x22, _SMIAPP_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SMIAPP_PAD_SINK@GOTPAGEOFF]
Lloh2:
	adrp	x23, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh4:
	adrp	x24, _MEDIA_LNK_FL_IMMUTABLE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MEDIA_LNK_FL_IMMUTABLE@GOTPAGEOFF]
	cbz	x2, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _SMIAPP_PAD_SRC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMIAPP_PAD_SRC@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh8:
	ldr	w3, [x8]
	ldr	w4, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w5, w9, w8
	mov	x0, x20
	bl	_smiapp_register_subdev
	tbnz	w0, #31, LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _SMIAPP_PA_PAD_SRC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMIAPP_PA_PAD_SRC@GOTPAGEOFF]
	ldp	x2, x1, [x20]
Lloh11:
	ldr	w3, [x8]
	ldr	w4, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w5, w9, w8
	mov	x0, x20
	bl	_smiapp_register_subdev
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_smiapp_unregistered
	b	LBB0_5
LBB0_4:
	mov	x21, x0
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIAPP_PAD_SRC,4,2             ; @SMIAPP_PAD_SRC
	.comm	_SMIAPP_PAD_SINK,4,2            ; @SMIAPP_PAD_SINK
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_MEDIA_LNK_FL_IMMUTABLE,4,2     ; @MEDIA_LNK_FL_IMMUTABLE
	.comm	_SMIAPP_PA_PAD_SRC,4,2          ; @SMIAPP_PA_PAD_SRC
	.no_dead_strip	_smiapp_registered
.subsections_via_symbols
