	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxnas_ox820_gpio_request_enable
_oxnas_ox820_gpio_request_enable:       ## @oxnas_ox820_gpio_request_enable
	.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
	movl	%edx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	movq	(%rax), %r12
	movq	_PINMUX_820_BANK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	subq	8(%rbx), %rdi
	callq	_BIT
	movl	%eax, %r15d
	movl	4(%r14), %edi
	movq	(%rbx), %r8
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %r9d
	callq	_dev_dbg
	testq	%r12, %r12
	cmoveq	%r12, %r13
	movl	(%r14), %edi
	movq	_PINMUX_820_SECONDARY_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_regmap_write_bits
	movl	(%r14), %edi
	movq	_PINMUX_820_TERTIARY_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_regmap_write_bits
	movl	(%r14), %edi
	movq	_PINMUX_820_QUATERNARY_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_regmap_write_bits
	movl	(%r14), %edi
	movq	_PINMUX_820_DEBUG_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_regmap_write_bits
	movl	(%r14), %edi
	movq	_PINMUX_820_ALTERNATIVE_SEL@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r13, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_regmap_write_bits
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PINMUX_820_BANK_OFFSET,4,2     ## @PINMUX_820_BANK_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"requesting gpio %d in bank %d (id %d) with mask 0x%x\n"

	.comm	_PINMUX_820_SECONDARY_SEL,8,3   ## @PINMUX_820_SECONDARY_SEL
	.comm	_PINMUX_820_TERTIARY_SEL,8,3    ## @PINMUX_820_TERTIARY_SEL
	.comm	_PINMUX_820_QUATERNARY_SEL,8,3  ## @PINMUX_820_QUATERNARY_SEL
	.comm	_PINMUX_820_DEBUG_SEL,8,3       ## @PINMUX_820_DEBUG_SEL
	.comm	_PINMUX_820_ALTERNATIVE_SEL,8,3 ## @PINMUX_820_ALTERNATIVE_SEL
	.no_dead_strip	_oxnas_ox820_gpio_request_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxnas_ox820_gpio_request_enable
_oxnas_ox820_gpio_request_enable:       ; @oxnas_ox820_gpio_request_enable
	.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	x21, x2
	mov	x20, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldr	w0, [x20]
	bl	_gpiochip_get_data
	mov	x22, x0
Lloh0:
	adrp	x8, _PINMUX_820_BANK_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINMUX_820_BANK_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	w8, w21
	ldp	x24, x9, [x0]
	sub	x0, x8, x9
	bl	_BIT
	mov	x20, x0
	ldr	w0, [x19, #4]
	ldp	x4, x3, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x5, x20
	bl	_dev_dbg
	ldr	w0, [x19]
	cmp	x24, #0
	csel	x21, xzr, x23, eq
Lloh5:
	adrp	x8, _PINMUX_820_SECONDARY_SEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PINMUX_820_SECONDARY_SEL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x2, x20
	mov	w3, #0
	bl	_regmap_write_bits
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _PINMUX_820_TERTIARY_SEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PINMUX_820_TERTIARY_SEL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x2, x20
	mov	w3, #0
	bl	_regmap_write_bits
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _PINMUX_820_QUATERNARY_SEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PINMUX_820_QUATERNARY_SEL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x2, x20
	mov	w3, #0
	bl	_regmap_write_bits
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _PINMUX_820_DEBUG_SEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PINMUX_820_DEBUG_SEL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x2, x20
	mov	w3, #0
	bl	_regmap_write_bits
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _PINMUX_820_ALTERNATIVE_SEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PINMUX_820_ALTERNATIVE_SEL@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x2, x20
	mov	w3, #0
	bl	_regmap_write_bits
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PINMUX_820_BANK_OFFSET,4,2     ; @PINMUX_820_BANK_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"requesting gpio %d in bank %d (id %d) with mask 0x%x\n"

	.comm	_PINMUX_820_SECONDARY_SEL,8,3   ; @PINMUX_820_SECONDARY_SEL
	.comm	_PINMUX_820_TERTIARY_SEL,8,3    ; @PINMUX_820_TERTIARY_SEL
	.comm	_PINMUX_820_QUATERNARY_SEL,8,3  ; @PINMUX_820_QUATERNARY_SEL
	.comm	_PINMUX_820_DEBUG_SEL,8,3       ; @PINMUX_820_DEBUG_SEL
	.comm	_PINMUX_820_ALTERNATIVE_SEL,8,3 ; @PINMUX_820_ALTERNATIVE_SEL
	.no_dead_strip	_oxnas_ox820_gpio_request_enable
.subsections_via_symbols
