	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syscon_gpio_dir_out
_syscon_gpio_dir_out:                   ## @syscon_gpio_dir_out
	.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, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	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:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax), %ebx
	addl	%r15d, %ebx
	addl	4(%rcx), %ebx
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SYSCON_REG_BITS@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %r14d
	movl	%edx, %edi
	movq	_SYSCON_REG_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %r14d
	callq	_BIT
	movl	%eax, %r13d
	movl	%ebx, %eax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	xorl	%edx, %edx
	movq	_SYSCON_REG_BITS@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movl	%edx, %edi
	callq	_BIT
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
LBB0_2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	*(%r12)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_out
.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_out
_syscon_gpio_dir_out:                   ; @syscon_gpio_dir_out
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	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, w22, [x0]
	add	w9, w9, w20
	add	w25, w9, w8
Lloh3:
	adrp	x26, _SYSCON_REG_BITS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SYSCON_REG_BITS@GOTPAGEOFF]
	ldr	w8, [x26]
	udiv	w9, w25, w8
Lloh5:
	adrp	x10, _SYSCON_REG_SIZE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SYSCON_REG_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	mul	w23, w10, w9
	msub	w0, w9, w8, w25
	bl	_BIT
	mov	x24, x0
	ldr	w8, [x26]
	udiv	w9, w25, w8
	msub	w0, w9, w8, w25
	bl	_BIT
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_regmap_update_bits
LBB0_2:
	ldr	x8, [x21]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.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_out
.subsections_via_symbols
