	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ichx_gpio_request
_ichx_gpio_request:                     ## @ichx_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, %ebx
	callq	_ichx_gpio_check_available
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_ichx_priv@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	shrl	$5, %ecx
	movl	(%rax,%rcx,4), %r14d
	movl	%ebx, %edi
	andl	$31, %edi
	callq	_BIT
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%r14d, %ecx
	jne	LBB0_4
## %bb.3:
	movq	_GPIO_USE_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_ichx_read_bit
	movq	%rax, %rcx
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovnel	%edx, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ichx_priv,8,3                  ## @ichx_priv
	.comm	_GPIO_USE_SEL,4,2               ## @GPIO_USE_SEL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ichx_gpio_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ichx_gpio_request
_ichx_gpio_request:                     ; @ichx_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	x19, x1
	bl	_ichx_gpio_check_available
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ichx_priv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ichx_priv@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	lsr	w9, w19, #5
	ldr	w20, [x8, w9, uxtw #2]
	and	w0, w19, #0x1f
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _GPIO_USE_SEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO_USE_SEL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ichx_read_bit
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ichx_priv,8,3                  ; @ichx_priv
	.comm	_GPIO_USE_SEL,4,2               ; @GPIO_USE_SEL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ichx_gpio_request
.subsections_via_symbols
