	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_configure_wake_irq
_omap_hsmmc_configure_wake_irq:         ## @omap_hsmmc_configure_wake_irq
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	callq	_dev_pm_set_dedicated_wake_irq
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	movl	32(%r15), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_6:
	movq	24(%r15), %rax
	movq	_OMAP_HSMMC_SWAKEUP_MISSING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.7:
	movq	8(%r15), %rdi
	callq	_devm_pinctrl_get
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_10:
	movq	_PINCTRL_STATE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pinctrl_lookup_state
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_13:
	movq	_PINCTRL_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pinctrl_lookup_state
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	callq	_dev_info
	movq	%r14, %rdi
	callq	_devm_pinctrl_put
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	8(%r15), %rdi
	callq	_dev_pm_clear_wake_irq
LBB0_5:
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movq	$0, (%r15)
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r14, %rdi
	callq	_devm_pinctrl_put
LBB0_16:
	movl	16(%r15), %r14d
	movq	_HCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_OMAP_HSMMC_READ
	movq	_IWE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_OMAP_HSMMC_WRITE
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to request wake IRQ\n"

	.comm	_OMAP_HSMMC_SWAKEUP_MISSING,4,2 ## @OMAP_HSMMC_SWAKEUP_MISSING
	.comm	_PINCTRL_STATE_DEFAULT,4,2      ## @PINCTRL_STATE_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"missing default pinctrl state\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PINCTRL_STATE_IDLE,4,2         ## @PINCTRL_STATE_IDLE
L_.str.2:                               ## @.str.2
	.asciz	"missing idle pinctrl state\n"

	.comm	_HCTL,4,2                       ## @HCTL
	.comm	_IWE,4,2                        ## @IWE
L_.str.3:                               ## @.str.3
	.asciz	"no SDIO IRQ support, falling back to polling\n"

	.no_dead_strip	_omap_hsmmc_configure_wake_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_configure_wake_irq
_omap_hsmmc_configure_wake_irq:         ; @omap_hsmmc_configure_wake_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x1, [x19]
	cbz	x1, LBB0_4
; %bb.2:
	bl	_dev_pm_set_dedicated_wake_irq
	cbz	w0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19, #32]
	bl	_mmc_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_4:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_5:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _OMAP_HSMMC_SWAKEUP_MISSING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OMAP_HSMMC_SWAKEUP_MISSING@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.6:
	ldr	x0, [x19, #8]
	bl	_devm_pinctrl_get
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_13
LBB0_8:
Lloh8:
	adrp	x8, _PINCTRL_STATE_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PINCTRL_STATE_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pinctrl_lookup_state
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x8, _PINCTRL_STATE_IDLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PINCTRL_STATE_IDLE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pinctrl_lookup_state
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.11:
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	bl	_dev_info
	mov	x0, x20
	bl	_devm_pinctrl_put
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	ldr	x0, [x19, #8]
	bl	_dev_pm_clear_wake_irq
LBB0_14:
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	str	xzr, [x19]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x20
	bl	_devm_pinctrl_put
LBB0_17:
	ldr	w19, [x19, #16]
Lloh23:
	adrp	x8, _HCTL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HCTL@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_OMAP_HSMMC_READ
Lloh26:
	adrp	x8, _IWE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IWE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_OMAP_HSMMC_WRITE
	mov	w20, #0
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to request wake IRQ\n"

	.comm	_OMAP_HSMMC_SWAKEUP_MISSING,4,2 ; @OMAP_HSMMC_SWAKEUP_MISSING
	.comm	_PINCTRL_STATE_DEFAULT,4,2      ; @PINCTRL_STATE_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"missing default pinctrl state\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PINCTRL_STATE_IDLE,4,2         ; @PINCTRL_STATE_IDLE
l_.str.2:                               ; @.str.2
	.asciz	"missing idle pinctrl state\n"

	.comm	_HCTL,4,2                       ; @HCTL
	.comm	_IWE,4,2                        ; @IWE
l_.str.3:                               ; @.str.3
	.asciz	"no SDIO IRQ support, falling back to polling\n"

	.no_dead_strip	_omap_hsmmc_configure_wake_irq
.subsections_via_symbols
