	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsp_attr_set_setreg
_fsp_attr_set_setreg:                   ## @fsp_attr_set_setreg
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rdi, %r14
	leaq	-48(%rbp), %rsi
	movq	%rdx, %rdi
	movl	$16, %edx
	callq	_simple_strtoul
	movq	-48(%rbp), %rdi
	cmpq	%rbx, %rdi
	je	LBB0_3
## %bb.1:
	cmpb	$32, (%rdi)
	jne	LBB0_3
## %bb.2:
	movq	%rax, %r15
	cmpq	$256, %rax                      ## imm = 0x100
	jae	LBB0_3
## %bb.5:
	incq	%rdi
	leaq	-40(%rbp), %rdx
	movl	$16, %esi
	callq	_strict_strtoul
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	cmpq	$256, -40(%rbp)                 ## imm = 0x100
	jae	LBB0_3
## %bb.7:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_fsp_reg_write_enable
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r12d, %r12d
	subq	(%rax), %r12
LBB0_10:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fsp_reg_write
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_fsp_reg_write_enable
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_fsp_attr_set_setreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsp_attr_set_setreg
_fsp_attr_set_setreg:                   ; @fsp_attr_set_setreg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
	mov	x1, sp
	mov	x0, x2
	mov	w2, #16
	bl	_simple_strtoul
	ldr	x8, [sp]
	cmp	x8, x22
	b.eq	LBB0_7
; %bb.1:
	ldrb	w9, [x8]
	cmp	w9, #32
	b.ne	LBB0_7
; %bb.2:
	mov	x21, x0
	cmp	x0, #256
	b.hs	LBB0_7
; %bb.3:
	add	x0, x8, #1
	add	x2, sp, #8
	mov	w1, #16
	bl	_strict_strtoul
	cbnz	x0, LBB0_7
; %bb.4:
	ldr	x8, [sp, #8]
	cmp	x8, #256
	b.hs	LBB0_7
; %bb.5:
	mov	x0, x20
	mov	w1, #1
	bl	_fsp_reg_write_enable
	cbz	x0, LBB0_10
; %bb.6:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_9:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_10:
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_fsp_reg_write
	mov	x0, x20
	mov	w1, #0
	bl	_fsp_reg_write_enable
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_fsp_attr_set_setreg
.subsections_via_symbols
