	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwme_get_request_sync
_hwme_get_request_sync:                 ## @hwme_get_request_sync
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	_SPI_HWME_GET_REQUEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
	movl	$1, -112(%rbp)
	movq	%rdi, -80(%rbp)
	leaq	-120(%rbp), %rdi
	leaq	-72(%rbp), %rdx
	movl	$3, %esi
	callq	_cascoda_api_downstream
	movq	_MAC_SYSTEM_ERROR@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	-72(%rbp), %rax
	movq	_SPI_HWME_GET_CONFIRM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	leaq	-56(%rbp), %rbx
	movq	-56(%rbp), %rax
	movq	_MAC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdx
	movq	%rdx, (%r15)
	movl	-40(%rbp), %esi
	movq	%r14, %rdi
	callq	_memcpy
LBB0_4:
	movq	(%rbx), %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_HWME_GET_REQUEST,8,3       ## @SPI_HWME_GET_REQUEST
	.comm	_MAC_SYSTEM_ERROR,8,3           ## @MAC_SYSTEM_ERROR
	.comm	_SPI_HWME_GET_CONFIRM,8,3       ## @SPI_HWME_GET_CONFIRM
	.comm	_MAC_SUCCESS,8,3                ## @MAC_SUCCESS
	.no_dead_strip	_hwme_get_request_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwme_get_request_sync
_hwme_get_request_sync:                 ; @hwme_get_request_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _SPI_HWME_GET_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_HWME_GET_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #48]
	mov	w8, #1
	str	w8, [sp, #56]
	str	x0, [sp, #88]
	add	x0, sp, #48
	mov	x2, sp
	mov	w1, #3
	bl	_cascoda_api_downstream
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [sp]
Lloh3:
	adrp	x9, _SPI_HWME_GET_CONFIRM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPI_HWME_GET_CONFIRM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x8, sp
	add	x21, x8, #16
	ldr	x8, [sp, #16]
Lloh6:
	adrp	x9, _MAC_SUCCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAC_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x2, [sp, #24]
	str	x2, [x20]
	ldr	w1, [sp, #32]
	mov	x0, x19
	bl	_memcpy
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x21, _MAC_SYSTEM_ERROR@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MAC_SYSTEM_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_HWME_GET_REQUEST,8,3       ; @SPI_HWME_GET_REQUEST
	.comm	_MAC_SYSTEM_ERROR,8,3           ; @MAC_SYSTEM_ERROR
	.comm	_SPI_HWME_GET_CONFIRM,8,3       ; @SPI_HWME_GET_CONFIRM
	.comm	_MAC_SUCCESS,8,3                ; @MAC_SUCCESS
	.no_dead_strip	_hwme_get_request_sync
.subsections_via_symbols
