	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syscon_gpio_dir_in
_syscon_gpio_dir_in:                    ## @syscon_gpio_dir_in
	.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	_gpiochip_get_data
	movq	8(%rax), %rcx
	movq	_GPIO_SYSCON_FEAT_DIR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_2
## %bb.1:
	addl	(%rax), %ebx
	addl	4(%rcx), %ebx
	movl	4(%rax), %r14d
	movq	_SYSCON_REG_BITS@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %ebx
	movl	%edx, %edi
	movq	_SYSCON_REG_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	callq	_BIT
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_SYSCON_FEAT_DIR,4,2       ## @GPIO_SYSCON_FEAT_DIR
	.comm	_SYSCON_REG_BITS,4,2            ## @SYSCON_REG_BITS
	.comm	_SYSCON_REG_SIZE,4,2            ## @SYSCON_REG_SIZE
	.no_dead_strip	_syscon_gpio_dir_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syscon_gpio_dir_in
_syscon_gpio_dir_in:                    ; @syscon_gpio_dir_in
	.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	_gpiochip_get_data
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _GPIO_SYSCON_FEAT_DIR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GPIO_SYSCON_FEAT_DIR@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x8, #4]
	ldp	w9, w20, [x0]
	add	w9, w9, w19
	add	w8, w9, w8
Lloh3:
	adrp	x9, _SYSCON_REG_BITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SYSCON_REG_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	udiv	w10, w8, w9
Lloh6:
	adrp	x11, _SYSCON_REG_SIZE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SYSCON_REG_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	mul	w19, w11, w10
	msub	w0, w10, w9, w8
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_regmap_update_bits
LBB0_2:
	mov	w0, #0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_SYSCON_FEAT_DIR,4,2       ; @GPIO_SYSCON_FEAT_DIR
	.comm	_SYSCON_REG_BITS,4,2            ; @SYSCON_REG_BITS
	.comm	_SYSCON_REG_SIZE,4,2            ; @SYSCON_REG_SIZE
	.no_dead_strip	_syscon_gpio_dir_in
.subsections_via_symbols
