	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function occ_trigger_attn
_occ_trigger_attn:                      ## @occ_trigger_attn
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_OCC_SBE_STATUS_WORDS@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movq	%r12, %rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	xorl	%edi, %edi
	cmpl	$7, %r12d
	setl	%dil
	callq	_BUILD_BUG_ON
	movslq	(%r15), %rax
	movq	%rax, -48(%rbp)
	movl	$7, %edi
	callq	_cpu_to_be32
	movq	%rax, (%rbx)
	movq	_SBEFIFO_CMD_PUT_OCC_SRAM@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movl	$3, %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%rbx)
	movl	$8, %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%rbx)
	movl	$536936448, %edi                ## imm = 0x20010000
	callq	_cpu_to_be32
	movq	%rax, 40(%rbx)
	movq	$0, 48(%rbx)
	movl	4(%r14), %edi
	leaq	-48(%rbp), %r8
	movq	%rbx, %rsi
	movl	$7, %edx
	movq	%rbx, %rcx
	callq	_sbefifo_submit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	4(%r14), %edi
	movl	(%r15), %esi
	movq	-48(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdx
	callq	_sbefifo_parse_status
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_9
LBB0_8:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-48(%rbp), %rdx
	cmpq	$1, %rdx
	jne	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	callq	_be32_to_cpu
	movq	%rax, %rdx
	xorl	%eax, %eax
	cmpq	$8, %rdx
	je	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movl	(%r14), %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%eax, %eax
	jg	LBB0_8
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OCC_SBE_STATUS_WORDS,4,2       ## @OCC_SBE_STATUS_WORDS
	.comm	_SBEFIFO_CMD_PUT_OCC_SRAM,4,2   ## @SBEFIFO_CMD_PUT_OCC_SRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SRAM attn response length invalid: %zd\n"

	.comm	_EBADMSG,4,2                    ## @EBADMSG
L_.str.1:                               ## @.str.1
	.asciz	"SRAM attn expected 8 bytes got %zd\n"

L_.str.2:                               ## @.str.2
	.asciz	"SRAM attn returned failure status: %08x\n"

	.no_dead_strip	_occ_trigger_attn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function occ_trigger_attn
_occ_trigger_attn:                      ; @occ_trigger_attn
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _OCC_SBE_STATUS_WORDS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _OCC_SBE_STATUS_WORDS@GOTPAGEOFF]
	ldr	w12, [x21]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cmp	w12, #7
	cset	w0, lt
	bl	_BUILD_BUG_ON
	ldrsw	x8, [x21]
	stur	x8, [x29, #-48]
	mov	w0, #7
	bl	_cpu_to_be32
	str	x0, [x20]
Lloh7:
	adrp	x21, _SBEFIFO_CMD_PUT_OCC_SRAM@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SBEFIFO_CMD_PUT_OCC_SRAM@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_cpu_to_be32
	str	x0, [x20, #8]
	mov	w0, #3
	bl	_cpu_to_be32
	str	x0, [x20, #16]
	mov	w0, #0
	bl	_cpu_to_be32
	str	x0, [x20, #24]
	mov	w0, #8
	bl	_cpu_to_be32
	str	x0, [x20, #32]
	mov	w0, #536936448
	bl	_cpu_to_be32
	stp	x0, xzr, [x20, #40]
	ldr	w0, [x19, #4]
	sub	x4, x29, #48
	mov	x1, x20
	mov	w2, #7
	mov	x3, x20
	bl	_sbefifo_submit
	mov	x2, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	ldur	x3, [x29, #-48]
	sub	x4, x29, #48
	mov	x2, x20
	bl	_sbefifo_parse_status
	mov	x2, x0
	cbz	w0, LBB0_6
LBB0_2:
	cmp	w2, #1
	b.lt	LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w2, w8
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.5:
	mov	x0, x2
	sub	sp, x29, #32
	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_6:
	ldur	x2, [x29, #-48]
	cmp	x2, #1
	b.ne	LBB0_9
; %bb.7:
	ldr	x0, [x20]
	bl	_be32_to_cpu
	cmp	x0, #8
	b.ne	LBB0_10
; %bb.8:
	mov	w2, #0
	b	LBB0_4
LBB0_9:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	ldr	w0, [x19]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
Lloh21:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w2, w8
	cmp	w2, #1
	b.ge	LBB0_3
	b	LBB0_4
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_OCC_SBE_STATUS_WORDS,4,2       ; @OCC_SBE_STATUS_WORDS
	.comm	_SBEFIFO_CMD_PUT_OCC_SRAM,4,2   ; @SBEFIFO_CMD_PUT_OCC_SRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SRAM attn response length invalid: %zd\n"

	.comm	_EBADMSG,4,2                    ; @EBADMSG
l_.str.1:                               ; @.str.1
	.asciz	"SRAM attn expected 8 bytes got %zd\n"

l_.str.2:                               ; @.str.2
	.asciz	"SRAM attn returned failure status: %08x\n"

	.no_dead_strip	_occ_trigger_attn
.subsections_via_symbols
