	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function request_locality
_request_locality:                      ## @request_locality
	.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
	callq	_check_locality
	testq	%rax, %rax
	js	LBB0_1
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_TPM_ACCESS_REQUEST_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	24(%rbx), %r12
	movl	%r14d, %edi
	callq	_TPM_ACCESS
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_iowrite8
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_check_locality
	shrq	$63, %rax
	xorl	$1, %eax
	movq	(%rbx), %rdx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_wait_event_interruptible_timeout
	testq	%rax, %rax
	jg	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%rbx), %r15
	addq	(%r12), %r15
	movq	_TPM_TIMEOUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_check_locality
	testq	%rax, %rax
	jns	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_msleep
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_4
LBB0_6:
	movl	$-1, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_TPM_ACCESS_REQUEST_USE,4,2     ## @TPM_ACCESS_REQUEST_USE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_TPM_TIMEOUT,4,2                ## @TPM_TIMEOUT
	.no_dead_strip	_request_locality
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function request_locality
_request_locality:                      ; @request_locality
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_check_locality
	tbnz	x0, #63, LBB0_2
LBB0_1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _TPM_ACCESS_REQUEST_USE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPM_ACCESS_REQUEST_USE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x22, [x20, #24]
	mov	x0, x19
	bl	_TPM_ACCESS
	add	x1, x0, x22
	mov	x0, x21
	bl	_iowrite8
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w21, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_check_locality
	lsr	x8, x0, #63
	eor	w1, w8, #0x1
	ldr	x2, [x20]
	mov	x0, x21
	bl	_wait_event_interruptible_timeout
	cmp	x0, #0
	b.gt	LBB0_1
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x22, _jiffies@GOTPAGE
Lloh4:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x20]
	add	x21, x9, x8
Lloh5:
	adrp	x23, _TPM_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TPM_TIMEOUT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_check_locality
	tbz	x0, #63, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	bl	_msleep
	ldr	x0, [x22]
	mov	x1, x21
	bl	_time_before
	cbnz	x0, LBB0_5
LBB0_7:
	mov	w19, #-1
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TPM_ACCESS_REQUEST_USE,4,2     ; @TPM_ACCESS_REQUEST_USE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_TPM_TIMEOUT,4,2                ; @TPM_TIMEOUT
	.no_dead_strip	_request_locality
.subsections_via_symbols
