	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thunderx_gpio_dir_out
_thunderx_gpio_dir_out:                 ## @thunderx_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, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movq	24(%rax), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %ebx
	movq	_GPIO_BIT_CFG_TX_OE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_thunderx_gpio_is_gpio
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	orl	%ebx, %r15d
	movq	%r12, %rdi
	callq	_raw_spin_lock
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_thunderx_gpio_set
	movl	20(%r12), %esi
	movl	%r14d, %edi
	callq	_test_bit
	xorl	%r13d, %r13d
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GPIO_BIT_CFG_PIN_XOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:
	orl	%ecx, %r15d
	movl	16(%r12), %esi
	movl	%r14d, %edi
	callq	_test_bit
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_GPIO_BIT_CFG_TX_OD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	orl	%ecx, %r15d
	movq	8(%r12), %rbx
	movl	%r14d, %edi
	callq	_bit_cfg_reg
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writeq
	movq	%r12, %rdi
	callq	_raw_spin_unlock
	jmp	LBB0_7
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_BIT_CFG_TX_OE,4,2         ## @GPIO_BIT_CFG_TX_OE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GPIO_BIT_CFG_PIN_XOR,4,2       ## @GPIO_BIT_CFG_PIN_XOR
	.comm	_GPIO_BIT_CFG_TX_OD,4,2         ## @GPIO_BIT_CFG_TX_OD
	.no_dead_strip	_thunderx_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 thunderx_gpio_dir_out
_thunderx_gpio_dir_out:                 ; @thunderx_gpio_dir_out
	.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
	mov	x22, x0
	bl	_gpiochip_get_data
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w23, [x8, w20, uxtw #2]
Lloh0:
	adrp	x8, _GPIO_BIT_CFG_TX_OE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_BIT_CFG_TX_OE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x1, x20
	bl	_thunderx_gpio_is_gpio
	cbz	w0, LBB0_2
; %bb.1:
	orr	w23, w24, w23
	mov	x0, x19
	bl	_raw_spin_lock
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_thunderx_gpio_set
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_test_bit
Lloh3:
	adrp	x8, _GPIO_BIT_CFG_PIN_XOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIO_BIT_CFG_PIN_XOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w23, w8
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_test_bit
Lloh6:
	adrp	x8, _GPIO_BIT_CFG_TX_OD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO_BIT_CFG_TX_OD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w21, w8
	ldr	x22, [x19, #8]
	mov	x0, x20
	bl	_bit_cfg_reg
	add	x1, x0, x22
	mov	x0, x21
	bl	_writeq
	mov	x0, x19
	bl	_raw_spin_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_BIT_CFG_TX_OE,4,2         ; @GPIO_BIT_CFG_TX_OE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GPIO_BIT_CFG_PIN_XOR,4,2       ; @GPIO_BIT_CFG_PIN_XOR
	.comm	_GPIO_BIT_CFG_TX_OD,4,2         ; @GPIO_BIT_CFG_TX_OD
	.no_dead_strip	_thunderx_gpio_dir_out
.subsections_via_symbols
