	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt1310_gpio_pin_set
_rt1310_gpio_pin_set:                   ## @rt1310_gpio_pin_set
	.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, %r14d
	movl	%esi, %r13d
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r15
	movl	%r13d, %edi
	callq	_rt1310_gpio_get_pinmap
	movq	%rax, %r12
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_rt1310_gpio_pin_getflags
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	_GPIO_PIN_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_3
## %bb.4:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.5:
                                        ## implicit-def: $r14d
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.6:
	movq	_RT_GPIO_OFF_PADR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_7:
	movq	_RT_GPIO_OFF_PBDR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r14d
LBB0_9:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rt1310_gpio_read_4
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_RT_GPIO_PIN_BIT
	movl	%ebx, %ecx
	btsl	%eax, %ecx
	btrl	%eax, %ebx
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	cmovel	%ecx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_rt1310_gpio_write_4
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GPIO_PIN_OUTPUT,4,2            ## @GPIO_PIN_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RT_GPIO_OFF_PADR,4,2           ## @RT_GPIO_OFF_PADR
	.comm	_RT_GPIO_OFF_PBDR,4,2           ## @RT_GPIO_OFF_PBDR
	.no_dead_strip	_rt1310_gpio_pin_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt1310_gpio_pin_set
_rt1310_gpio_pin_set:                   ; @rt1310_gpio_pin_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	bl	_device_get_softc
	mov	x20, x0
	mov	x0, x21
	bl	_rt1310_gpio_get_pinmap
	mov	x22, x0
	add	x2, sp, #12
	mov	x0, x23
	mov	x1, x21
	bl	_rt1310_gpio_pin_getflags
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_2:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _GPIO_PIN_OUTPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GPIO_PIN_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.4:
                                        ; implicit-def: $w23
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, _RT_GPIO_OFF_PADR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RT_GPIO_OFF_PADR@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _RT_GPIO_OFF_PBDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RT_GPIO_OFF_PBDR@GOTPAGEOFF]
LBB0_8:
	ldr	w23, [x8]
LBB0_9:
	mov	x0, x20
	mov	x1, x23
	bl	_rt1310_gpio_read_4
	mov	x24, x0
	mov	x0, x22
	mov	x1, x21
	bl	_RT_GPIO_PIN_BIT
	mov	w8, #1
	lsl	w8, w8, w0
	orr	w9, w8, w24
	bic	w8, w24, w8
	cmp	w19, #1
	csel	w2, w9, w8, eq
	mov	x0, x20
	mov	x1, x23
	bl	_rt1310_gpio_write_4
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GPIO_PIN_OUTPUT,4,2            ; @GPIO_PIN_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RT_GPIO_OFF_PADR,4,2           ; @RT_GPIO_OFF_PADR
	.comm	_RT_GPIO_OFF_PBDR,4,2           ; @RT_GPIO_OFF_PBDR
	.no_dead_strip	_rt1310_gpio_pin_set
.subsections_via_symbols
