	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_opal_send_request
_i2c_opal_send_request:                 ## @i2c_opal_send_request
	.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	%rsi, %r12
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_opal_alloc_async_token
	movl	%eax, %r14d
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_OPAL_I2C_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_vtophys
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_opal_call
	movl	%eax, %ebx
	movq	_OPAL_ASYNC_COMPLETION@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.1:
	leaq	-40(%rbp), %rdi
	movl	$4, %esi
	movl	%r14d, %edx
	callq	_opal_wait_completion
	movl	%eax, %ebx
	movq	_OPAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.2:
	movl	-40(%rbp), %edi
	callq	_opal_get_async_rc
	movl	%eax, %ebx
LBB0_3:
	movl	%r14d, %edi
	callq	_opal_free_async_token
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPAL_I2C_REQUEST,4,2           ## @OPAL_I2C_REQUEST
	.comm	_OPAL_ASYNC_COMPLETION,4,2      ## @OPAL_ASYNC_COMPLETION
	.comm	_OPAL_SUCCESS,4,2               ## @OPAL_SUCCESS
	.no_dead_strip	_i2c_opal_send_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_opal_send_request
_i2c_opal_send_request:                 ; @i2c_opal_send_request
	.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	x20, x1
	mov	x21, x0
	bl	_opal_alloc_async_token
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _OPAL_I2C_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPAL_I2C_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_vtophys
	mov	x3, x0
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_opal_call
	mov	x20, x0
Lloh3:
	adrp	x8, _OPAL_ASYNC_COMPLETION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPAL_ASYNC_COMPLETION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	add	x0, sp, #8
	mov	w1, #4
	mov	x2, x19
	bl	_opal_wait_completion
	mov	x20, x0
Lloh6:
	adrp	x8, _OPAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPAL_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_opal_get_async_rc
	mov	x20, x0
LBB0_3:
	mov	x0, x19
	bl	_opal_free_async_token
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OPAL_I2C_REQUEST,4,2           ; @OPAL_I2C_REQUEST
	.comm	_OPAL_ASYNC_COMPLETION,4,2      ; @OPAL_ASYNC_COMPLETION
	.comm	_OPAL_SUCCESS,4,2               ; @OPAL_SUCCESS
	.no_dead_strip	_i2c_opal_send_request
.subsections_via_symbols
