	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cobalt_notify
_cobalt_notify:                         ## @cobalt_notify
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_cobalt
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_cobalt_get_sd_nr
	movq	(%r15), %rbx
	movl	%eax, %r12d
	movl	%r14d, %ecx
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movl	(%r13), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%r12, %r14
	shlq	$4, %r14
	cmpq	$0, 8(%rbx,%r14)
	je	LBB0_4
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$128, %ecx
	je	LBB0_7
## %bb.5:
	cmpl	$129, %ecx
	jne	LBB0_8
## %bb.6:
	movl	%r12d, %edi
	movl	%eax, %ebx
	callq	_COBALT_SYS_CTRL_HPD_TO_CONNECTOR_BIT
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_cobalt_s_bit_sysctrl
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cobalt_dbg                     ## TAILCALL
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_cobalt_dbg
	addq	%r14, %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_event_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set hotplug for adv %d to %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Format changed for adv %d\n"

	.no_dead_strip	_cobalt_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cobalt_notify
_cobalt_notify:                         ; @cobalt_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_cobalt
	mov	x21, x0
	mov	x0, x19
	bl	_cobalt_get_sd_nr
	ldr	x24, [x21]
	mov	w19, w0
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w23, [x20]
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	add	x8, x24, x19, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	cmp	w22, #128
	b.eq	LBB0_8
; %bb.6:
	cmp	w22, #129
	b.ne	LBB0_4
; %bb.7:
	mov	x0, x19
	bl	_COBALT_SYS_CTRL_HPD_TO_CONNECTOR_BIT
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	bl	_cobalt_s_bit_sysctrl
	str	x23, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_cobalt_dbg
	b	LBB0_4
LBB0_8:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_cobalt_dbg
	add	x0, x24, x19, lsl #4
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_v4l2_event_queue
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set hotplug for adv %d to %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Format changed for adv %d\n"

	.no_dead_strip	_cobalt_notify
.subsections_via_symbols
