	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_gpio_unidle
_omap_gpio_unidle:                      ## @omap_gpio_unidle
	.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
	movq	%rdi, %r13
	movq	64(%rdi), %rbx
	cmpq	$0, 48(%rdi)
	je	LBB0_4
## %bb.1:
	cmpl	$0, 56(%r13)
	jne	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	callq	_omap_gpio_init_context
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rax
	movl	%eax, 8(%r13)
LBB0_4:
	movq	%r13, %rdi
	callq	_omap_gpio_dbck_enable
	cmpq	$0, 48(%r13)
	je	LBB0_9
## %bb.5:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rax
	cmpl	8(%r13), %eax
	je	LBB0_8
LBB0_6:
	movq	%r13, %rdi
	callq	_omap_gpio_restore_context
	jmp	LBB0_10
LBB0_9:
	movl	40(%r13), %edi
	movq	24(%r13), %rax
	movq	40(%rax), %rsi
	addq	32(%r13), %rsi
	callq	_writel_relaxed
	movl	44(%r13), %edi
	movq	24(%r13), %rax
	movq	32(%rax), %rsi
	addq	32(%r13), %rsi
	callq	_writel_relaxed
LBB0_10:
	movq	24(%r13), %rax
	movq	24(%rax), %rdi
	addq	32(%r13), %rdi
	callq	_readl_relaxed
	movl	%eax, %r14d
	movl	12(%r13), %eax
	xorl	%eax, %r14d
	andl	16(%r13), %r14d
	movl	40(%r13), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	andl	%r14d, %edx
	movl	44(%r13), %ebx
	notl	%eax
	andl	%ebx, %eax
	andl	%r14d, %eax
	orl	%edx, %eax
	orl	%ecx, %ebx
	notl	%ebx
	andl	%r14d, %ebx
	orl	%eax, %ebx
	je	LBB0_8
## %bb.11:
	movq	24(%r13), %rax
	movq	8(%rax), %rdi
	addq	32(%r13), %rdi
	callq	_readl_relaxed
	movl	%eax, %r15d
	movq	24(%r13), %rax
	movq	(%rax), %rdi
	addq	32(%r13), %rdi
	callq	_readl_relaxed
	movl	%eax, %r12d
	movq	24(%r13), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_13
## %bb.12:
	movl	%r15d, %edi
	orl	%ebx, %edi
	movq	8(%rax), %rsi
	addq	32(%r13), %rsi
	callq	_writel_relaxed
	orl	%r12d, %ebx
	movq	24(%r13), %rax
	movq	(%rax), %rsi
	addq	32(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	24(%r13), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_14
LBB0_13:
	movl	%r15d, %edi
	orl	%r14d, %edi
	movq	8(%rax), %rsi
	addq	32(%r13), %rsi
	callq	_writel_relaxed
	movl	%r12d, %edi
	orl	%r14d, %edi
	movq	24(%r13), %rax
	movq	(%rax), %rsi
	addq	32(%r13), %rsi
	callq	_writel_relaxed
	movq	24(%r13), %rax
LBB0_14:
	movq	8(%rax), %rsi
	addq	32(%r13), %rsi
	movl	%r15d, %edi
	callq	_writel_relaxed
	movq	24(%r13), %rax
	movq	(%rax), %rsi
	addq	32(%r13), %rsi
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_omap_gpio_unidle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_gpio_unidle
_omap_gpio_unidle:                      ; @omap_gpio_unidle
	.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, x0
	ldr	x20, [x0, #64]
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_omap_gpio_init_context
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	blr	x8
	str	w0, [x19, #8]
LBB0_4:
	mov	x0, x19
	bl	_omap_gpio_dbck_enable
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	blr	x8
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.eq	LBB0_14
LBB0_7:
	mov	x0, x19
	bl	_omap_gpio_restore_context
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #40]
	ldp	x9, x8, [x19, #24]
	ldr	x9, [x9, #40]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w0, [x19, #44]
	ldp	x9, x8, [x19, #24]
	ldr	x9, [x9, #32]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_9:
	ldp	x9, x8, [x19, #24]
	ldr	x9, [x9, #24]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldp	w8, w9, [x19, #12]
	eor	w10, w8, w0
	and	w22, w10, w9
	ldp	w9, w10, [x19, #40]
	and	w11, w9, w8
	and	w11, w11, w22
	bic	w8, w22, w8
	and	w8, w8, w10
	orr	w9, w10, w9
	bic	w9, w22, w9
	orr	w8, w8, w11
	orr	w23, w8, w9
	cbz	w23, LBB0_14
; %bb.10:
	ldp	x9, x8, [x19, #24]
	ldr	x9, [x9, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	ldp	x9, x8, [x19, #24]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x21, x0
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_12
; %bb.11:
	orr	w0, w20, w23
	ldr	x9, [x19, #32]
	ldr	x8, [x8, #8]
	add	x1, x8, x9
	bl	_writel_relaxed
	orr	w0, w21, w23
	ldp	x9, x8, [x19, #24]
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_13
LBB0_12:
	orr	w0, w20, w22
	ldr	x9, [x19, #32]
	ldr	x8, [x8, #8]
	add	x1, x8, x9
	bl	_writel_relaxed
	orr	w0, w21, w22
	ldp	x9, x8, [x19, #24]
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19, #24]
LBB0_13:
	ldr	x9, [x19, #32]
	ldr	x8, [x8, #8]
	add	x1, x8, x9
	mov	x0, x20
	bl	_writel_relaxed
	ldp	x9, x8, [x19, #24]
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	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
	b	_writel_relaxed
LBB0_14:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_omap_gpio_unidle
.subsections_via_symbols
