	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_gpio_sb_domain_activate
_xgene_gpio_sb_domain_activate:         ## @xgene_gpio_sb_domain_activate
	.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
	movq	(%rdi), %rbx
	movl	(%rsi), %esi
	movq	%rbx, %rdi
	callq	_HWIRQ_TO_GPIO
	movl	%eax, %r15d
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_gpiochip_lock_as_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movq	_MPA_GPIO_SEL_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	addl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	_xgene_gpio_set_bit
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to configure XGene GPIO standby pin %d as IRQ\n"

	.comm	_MPA_GPIO_SEL_LO,8,3            ## @MPA_GPIO_SEL_LO
	.no_dead_strip	_xgene_gpio_sb_domain_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_gpio_sb_domain_activate
_xgene_gpio_sb_domain_activate:         ; @xgene_gpio_sb_domain_activate
	.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
	ldr	x22, [x0]
	ldr	w1, [x1]
	mov	x0, x22
	bl	_HWIRQ_TO_GPIO
	mov	x20, x0
	add	x21, x22, #8
	mov	x0, x21
	mov	x1, x20
	bl	_gpiochip_lock_as_irq
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _MPA_GPIO_SEL_LO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MPA_GPIO_SEL_LO@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	lsl	w2, w20, #1
	mov	x0, x21
	mov	w3, #1
	bl	_xgene_gpio_set_bit
LBB0_3:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to configure XGene GPIO standby pin %d as IRQ\n"

	.comm	_MPA_GPIO_SEL_LO,8,3            ; @MPA_GPIO_SEL_LO
	.no_dead_strip	_xgene_gpio_sb_domain_activate
.subsections_via_symbols
