	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osd_enable_layer
_osd_enable_layer:                      ## @osd_enable_layer
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	16(%rdi), %r13
	movl	%esi, %ebx
	callq	_spin_lock_irqsave
	leaq	(%rbx,%rbx,4), %rax
	testl	%r14d, %r14d
	je	LBB0_1
LBB0_6:
	xorl	%r14d, %r14d
	cmpl	$0, (%r13,%rax,8)
	jne	LBB0_10
## %bb.7:
	leaq	(,%rax,8), %rcx
	addq	%r13, %rcx
	movl	$1, (%rcx)
	movq	16(%r13,%rax,8), %rax
	movq	_PIXFMT_OSD_ATTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	callq	__osd_enable_attribute_mode
	movl	4(%r12), %edx
	movl	8(%r12), %esi
	movq	%r12, %rdi
	callq	__osd_set_blink_attribute
	jmp	LBB0_10
LBB0_1:
	movl	$-1, %r14d
	cmpl	$0, 8(%r13,%rax,8)
	je	LBB0_10
## %bb.2:
	cmpl	$0, 4(%r13,%rax,8)
	je	LBB0_10
## %bb.3:
	cmpl	$0, 32(%r13,%rax,8)
	je	LBB0_10
## %bb.4:
	cmpl	$0, 28(%r13,%rax,8)
	je	LBB0_10
## %bb.5:
	cmpl	$0, 24(%r13,%rax,8)
	jne	LBB0_6
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	__osd_enable_layer
LBB0_10:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIXFMT_OSD_ATTR,8,3            ## @PIXFMT_OSD_ATTR
	.no_dead_strip	_osd_enable_layer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function osd_enable_layer
_osd_enable_layer:                      ; @osd_enable_layer
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	mov	w23, w1
	bl	_spin_lock_irqsave
	cbz	w21, LBB0_4
LBB0_1:
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	w9, [x8]
	cbnz	w9, LBB0_11
; %bb.2:
	mov	w9, #1
	str	w9, [x8]
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	x8, [x8, #16]
Lloh0:
	adrp	x9, _PIXFMT_OSD_ATTR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIXFMT_OSD_ATTR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	bl	__osd_enable_attribute_mode
	ldp	w2, w1, [x19, #4]
	mov	x0, x19
	bl	__osd_set_blink_attribute
	b	LBB0_11
LBB0_4:
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_9
; %bb.5:
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_9
; %bb.6:
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	w8, [x8, #32]
	cbz	w8, LBB0_9
; %bb.7:
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	w8, [x8, #28]
	cbz	w8, LBB0_9
; %bb.8:
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	w8, [x8, #24]
	cbnz	w8, LBB0_1
LBB0_9:
	mov	w20, #-1
	b	LBB0_12
LBB0_10:
	mov	x1, x20
	bl	__osd_enable_layer
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIXFMT_OSD_ATTR,8,3            ; @PIXFMT_OSD_ATTR
	.no_dead_strip	_osd_enable_layer
.subsections_via_symbols
