	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msic_gpio_direction_output
_msic_gpio_direction_output:            ## @msic_gpio_direction_output
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %edi
	movq	_MSIC_GPIO_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MSIC_GPIO_DIR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MSIC_GPIO_DOUT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_msic_gpio_to_oreg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	orl	%r12d, %ebx
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	setne	%cl
	orl	%ecx, %r14d
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_msic_reg_update          ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSIC_GPIO_DIR_OUT,4,2          ## @MSIC_GPIO_DIR_OUT
	.comm	_MSIC_GPIO_DIR_MASK,4,2         ## @MSIC_GPIO_DIR_MASK
	.comm	_MSIC_GPIO_DOUT_MASK,4,2        ## @MSIC_GPIO_DOUT_MASK
	.no_dead_strip	_msic_gpio_direction_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msic_gpio_direction_output
_msic_gpio_direction_output:            ; @msic_gpio_direction_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x0, x1
Lloh0:
	adrp	x8, _MSIC_GPIO_DIR_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSIC_GPIO_DIR_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _MSIC_GPIO_DIR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSIC_GPIO_DIR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _MSIC_GPIO_DOUT_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSIC_GPIO_DOUT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	bl	_msic_gpio_to_oreg
	tbnz	w0, #31, LBB0_2
; %bb.1:
	orr	w2, w22, w21
	cmp	w19, #0
	cset	w8, ne
	orr	w1, w20, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_intel_msic_reg_update
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSIC_GPIO_DIR_OUT,4,2          ; @MSIC_GPIO_DIR_OUT
	.comm	_MSIC_GPIO_DIR_MASK,4,2         ; @MSIC_GPIO_DIR_MASK
	.comm	_MSIC_GPIO_DOUT_MASK,4,2        ; @MSIC_GPIO_DOUT_MASK
	.no_dead_strip	_msic_gpio_direction_output
.subsections_via_symbols
