	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsp_onpad_hscr
_fsp_onpad_hscr:                        ## @fsp_onpad_hscr
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	_FSP_REG_ONPAD_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdx
	callq	_fsp_reg_read
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	_FSP_REG_SYSCTL5@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_fsp_reg_read
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movl	%r14d, (%r13)
	movq	_FSP_BIT_FIX_HSCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_FSP_BIT_ONPAD_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	-48(%rbp), %edx
	movl	%edx, -48(%rbp)
	movq	_FSP_BIT_EN_MSID6@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %eax
	orl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	notl	%edx
	andl	-48(%rbp), %edx
	movq	_FSP_BIT_EN_MSID6@GOTPCREL(%rip), %rcx
	movq	_FSP_BIT_EN_MSID7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_FSP_BIT_EN_MSID8@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%edx, -48(%rbp)
	notl	%eax
	andl	-44(%rbp), %eax
LBB0_5:
	movl	%eax, -44(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_fsp_reg_write
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_fsp_reg_write
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_FSP_REG_ONPAD_CTL,4,2          ## @FSP_REG_ONPAD_CTL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FSP_REG_SYSCTL5,4,2            ## @FSP_REG_SYSCTL5
	.comm	_FSP_BIT_FIX_HSCR,4,2           ## @FSP_BIT_FIX_HSCR
	.comm	_FSP_BIT_ONPAD_ENABLE,4,2       ## @FSP_BIT_ONPAD_ENABLE
	.comm	_FSP_BIT_EN_MSID6,4,2           ## @FSP_BIT_EN_MSID6
	.comm	_FSP_BIT_EN_MSID7,4,2           ## @FSP_BIT_EN_MSID7
	.comm	_FSP_BIT_EN_MSID8,4,2           ## @FSP_BIT_EN_MSID8
	.no_dead_strip	_fsp_onpad_hscr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsp_onpad_hscr
_fsp_onpad_hscr:                        ; @fsp_onpad_hscr
	.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, x1
	mov	x19, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x21, _FSP_REG_ONPAD_CTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FSP_REG_ONPAD_CTL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_fsp_reg_read
	cbnz	x0, LBB0_7
; %bb.1:
Lloh2:
	adrp	x22, _FSP_REG_SYSCTL5@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FSP_REG_SYSCTL5@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_fsp_reg_read
	cbnz	x0, LBB0_7
; %bb.2:
	str	w20, [x23]
Lloh4:
	adrp	x8, _FSP_BIT_FIX_HSCR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FSP_BIT_FIX_HSCR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbz	w20, LBB0_4
; %bb.3:
Lloh7:
	adrp	x9, _FSP_BIT_ONPAD_ENABLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FSP_BIT_ONPAD_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
	str	w2, [sp, #12]
Lloh10:
	adrp	x8, _FSP_BIT_EN_MSID6@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FSP_BIT_EN_MSID6@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
Lloh13:
	adrp	x8, _FSP_BIT_EN_MSID6@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FSP_BIT_EN_MSID6@GOTPAGEOFF]
	str	w2, [sp, #12]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _FSP_BIT_EN_MSID7@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FSP_BIT_EN_MSID7@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _FSP_BIT_EN_MSID8@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FSP_BIT_EN_MSID8@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
LBB0_5:
	str	w8, [sp, #8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_fsp_reg_write
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x22]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_fsp_reg_write
	cbz	x0, LBB0_8
LBB0_7:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_FSP_REG_ONPAD_CTL,4,2          ; @FSP_REG_ONPAD_CTL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FSP_REG_SYSCTL5,4,2            ; @FSP_REG_SYSCTL5
	.comm	_FSP_BIT_FIX_HSCR,4,2           ; @FSP_BIT_FIX_HSCR
	.comm	_FSP_BIT_ONPAD_ENABLE,4,2       ; @FSP_BIT_ONPAD_ENABLE
	.comm	_FSP_BIT_EN_MSID6,4,2           ; @FSP_BIT_EN_MSID6
	.comm	_FSP_BIT_EN_MSID7,4,2           ; @FSP_BIT_EN_MSID7
	.comm	_FSP_BIT_EN_MSID8,4,2           ; @FSP_BIT_EN_MSID8
	.no_dead_strip	_fsp_onpad_hscr
.subsections_via_symbols
