	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _il_apm_stop_master
__il_apm_stop_master:                   ## @_il_apm_stop_master
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CSR_RESET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CSR_RESET_REG_FLAG_STOP_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	__il_set_bit
	movl	(%r14), %esi
	movq	_CSR_RESET_REG_FLAG_MASTER_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	movl	$100, %r8d
	callq	__il_poll_bit
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_IL_WARN
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_D_INFO
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_RESET,4,2                  ## @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_STOP_MASTER,4,2 ## @CSR_RESET_REG_FLAG_STOP_MASTER
	.comm	_CSR_RESET_REG_FLAG_MASTER_DISABLED,4,2 ## @CSR_RESET_REG_FLAG_MASTER_DISABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Master Disable Timed Out, 100 usec\n"

L_.str.1:                               ## @.str.1
	.asciz	"stop master\n"

	.no_dead_strip	__il_apm_stop_master
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _il_apm_stop_master
__il_apm_stop_master:                   ; @_il_apm_stop_master
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _CSR_RESET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CSR_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _CSR_RESET_REG_FLAG_STOP_MASTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSR_RESET_REG_FLAG_STOP_MASTER@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	__il_set_bit
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _CSR_RESET_REG_FLAG_MASTER_DISABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSR_RESET_REG_FLAG_MASTER_DISABLED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	mov	w4, #100
	bl	__il_poll_bit
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_WARN
LBB0_2:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_INFO
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_RESET,4,2                  ; @CSR_RESET
	.comm	_CSR_RESET_REG_FLAG_STOP_MASTER,4,2 ; @CSR_RESET_REG_FLAG_STOP_MASTER
	.comm	_CSR_RESET_REG_FLAG_MASTER_DISABLED,4,2 ; @CSR_RESET_REG_FLAG_MASTER_DISABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Master Disable Timed Out, 100 usec\n"

l_.str.1:                               ; @.str.1
	.asciz	"stop master\n"

	.no_dead_strip	__il_apm_stop_master
.subsections_via_symbols
