	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chip_gpio_request
_chip_gpio_request:                     ## @chip_gpio_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%r14d, %eax
	jae	LBB0_1
## %bb.2:
	movq	_GPIO_OUTPUT_AUX1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	___cs5535_gpio_clear
	movq	_GPIO_OUTPUT_AUX2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	___cs5535_gpio_clear
	movq	_GPIO_INPUT_AUX1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	___cs5535_gpio_clear
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mask,4,2                       ## @mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pin %u is not available (check mask)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GPIO_OUTPUT_AUX1,4,2           ## @GPIO_OUTPUT_AUX1
	.comm	_GPIO_OUTPUT_AUX2,4,2           ## @GPIO_OUTPUT_AUX2
	.comm	_GPIO_INPUT_AUX1,4,2            ## @GPIO_INPUT_AUX1
	.no_dead_strip	_chip_gpio_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chip_gpio_request
_chip_gpio_request:                     ; @chip_gpio_request
	.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	x20, x1
	bl	_gpiochip_get_data
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mask@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w8, w8, w20
	tbz	w8, #0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _GPIO_OUTPUT_AUX1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIO_OUTPUT_AUX1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	___cs5535_gpio_clear
Lloh6:
	adrp	x8, _GPIO_OUTPUT_AUX2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO_OUTPUT_AUX2@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	___cs5535_gpio_clear
Lloh9:
	adrp	x8, _GPIO_INPUT_AUX1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GPIO_INPUT_AUX1@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	___cs5535_gpio_clear
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_info
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_mask,4,2                       ; @mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pin %u is not available (check mask)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GPIO_OUTPUT_AUX1,4,2           ; @GPIO_OUTPUT_AUX1
	.comm	_GPIO_OUTPUT_AUX2,4,2           ; @GPIO_OUTPUT_AUX2
	.comm	_GPIO_INPUT_AUX1,4,2            ; @GPIO_INPUT_AUX1
	.no_dead_strip	_chip_gpio_request
.subsections_via_symbols
