	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_8051_request
_handle_8051_request:                   ## @handle_8051_request
	.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
	movq	_DC_DC8051_CFG_EXT_DEV_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_read_csr
	movl	%eax, %ebx
	movq	_DC_DC8051_CFG_EXT_DEV_1_REQ_NEW_SMASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.1:
	movq	_DC_DC8051_CFG_EXT_DEV_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	movq	_DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %edx
	sarl	%cl, %edx
	movq	_DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	leal	-128(%rdx), %eax
	cmpl	$8, %eax
	ja	LBB0_6
## %bb.2:
	movq	_HREQ_SUCCESS@GOTPCREL(%rip), %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dd_dev_info
LBB0_7:
	movq	_HREQ_NOT_SUPPORTED@GOTPCREL(%rip), %r12
LBB0_8:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hreq_response                  ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dd_dev_err
	jmp	LBB0_7
LBB0_4:
	movq	_DCC_CFG_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_LCB_RX_FPE_TX_FPE_INTO_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_write_csr
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_read_csr
	movl	$1, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	_LCB_RX_FPE_TX_FPE_OUT_OF_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_write_csr
	jmp	LBB0_8
LBB0_5:
	movq	_DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, %r14d
	jmp	LBB0_8
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_DC_DC8051_CFG_EXT_DEV_1,4,2    ## @DC_DC8051_CFG_EXT_DEV_1
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_NEW_SMASK,4,2 ## @DC_DC8051_CFG_EXT_DEV_1_REQ_NEW_SMASK
	.comm	_DC_DC8051_CFG_EXT_DEV_0,4,2    ## @DC_DC8051_CFG_EXT_DEV_0
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_SHIFT,4,2 ## @DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_SHIFT
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_MASK,4,2 ## @DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_MASK
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SHIFT,4,2 ## @DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SHIFT
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_MASK,4,2 ## @DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"8051 request: request 0x%x not supported\n"

	.comm	_HREQ_NOT_SUPPORTED,4,2         ## @HREQ_NOT_SUPPORTED
	.comm	_DCC_CFG_RESET,4,2              ## @DCC_CFG_RESET
	.comm	_LCB_RX_FPE_TX_FPE_INTO_RESET,4,2 ## @LCB_RX_FPE_TX_FPE_INTO_RESET
	.comm	_LCB_RX_FPE_TX_FPE_OUT_OF_RESET,4,2 ## @LCB_RX_FPE_TX_FPE_OUT_OF_RESET
	.comm	_HREQ_SUCCESS,4,2               ## @HREQ_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"8051 request: unknown request 0x%x\n"

	.no_dead_strip	_handle_8051_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_8051_request
_handle_8051_request:                   ; @handle_8051_request
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _DC_DC8051_CFG_EXT_DEV_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_DC8051_CFG_EXT_DEV_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_read_csr
Lloh3:
	adrp	x8, _DC_DC8051_CFG_EXT_DEV_1_REQ_NEW_SMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_DC8051_CFG_EXT_DEV_1_REQ_NEW_SMASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _DC_DC8051_CFG_EXT_DEV_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DC_DC8051_CFG_EXT_DEV_0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_write_csr
Lloh9:
	adrp	x8, _DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	asr	w8, w20, w8
Lloh12:
	adrp	x9, _DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w8, w9
	sub	w10, w8, #128
	cmp	w10, #8
	b.hi	LBB0_6
; %bb.2:
	mov	w2, #0
Lloh15:
	adrp	x9, _HREQ_SUCCESS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HREQ_SUCCESS@GOTPAGEOFF]
Lloh17:
	adrp	x11, lJTI0_0@PAGE
Lloh18:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_3
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_3:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x8
	bl	_dd_dev_info
LBB0_4:
	mov	w2, #0
Lloh21:
	adrp	x9, _HREQ_NOT_SUPPORTED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HREQ_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x8
	bl	_dd_dev_err
	b	LBB0_4
LBB0_7:
Lloh25:
	adrp	x20, _DCC_CFG_RESET@GOTPAGE
Lloh26:
	ldr	x20, [x20, _DCC_CFG_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh27:
	adrp	x8, _LCB_RX_FPE_TX_FPE_INTO_RESET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LCB_RX_FPE_TX_FPE_INTO_RESET@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_csr
	ldr	w1, [x20]
	mov	x0, x19
	bl	_read_csr
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x20]
Lloh30:
	adrp	x8, _LCB_RX_FPE_TX_FPE_OUT_OF_RESET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LCB_RX_FPE_TX_FPE_OUT_OF_RESET@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_csr
	mov	w2, #0
	b	LBB0_9
LBB0_8:
Lloh33:
	adrp	x8, _DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SHIFT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	asr	w8, w20, w8
Lloh36:
	adrp	x9, _DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_MASK@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	and	w2, w8, w9
LBB0_9:
Lloh39:
	adrp	x9, _HREQ_SUCCESS@GOTPAGE
Lloh40:
	ldr	x9, [x9, _HREQ_SUCCESS@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hreq_response
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_DC_DC8051_CFG_EXT_DEV_1,4,2    ; @DC_DC8051_CFG_EXT_DEV_1
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_NEW_SMASK,4,2 ; @DC_DC8051_CFG_EXT_DEV_1_REQ_NEW_SMASK
	.comm	_DC_DC8051_CFG_EXT_DEV_0,4,2    ; @DC_DC8051_CFG_EXT_DEV_0
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_SHIFT,4,2 ; @DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_SHIFT
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_MASK,4,2 ; @DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_MASK
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SHIFT,4,2 ; @DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SHIFT
	.comm	_DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_MASK,4,2 ; @DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"8051 request: request 0x%x not supported\n"

	.comm	_HREQ_NOT_SUPPORTED,4,2         ; @HREQ_NOT_SUPPORTED
	.comm	_DCC_CFG_RESET,4,2              ; @DCC_CFG_RESET
	.comm	_LCB_RX_FPE_TX_FPE_INTO_RESET,4,2 ; @LCB_RX_FPE_TX_FPE_INTO_RESET
	.comm	_LCB_RX_FPE_TX_FPE_OUT_OF_RESET,4,2 ; @LCB_RX_FPE_TX_FPE_OUT_OF_RESET
	.comm	_HREQ_SUCCESS,4,2               ; @HREQ_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"8051 request: unknown request 0x%x\n"

	.no_dead_strip	_handle_8051_request
.subsections_via_symbols
