	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sms_set_gpio
_sms_set_gpio:                          ## @sms_set_gpio
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SMS_GPIO_OUTPUTDRIVING_S_4mA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_SMS_GPIO_OUTPUT_SLEW_RATE_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_SMS_GPIO_INPUTCHARACTERISTICS_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_SMS_GPIO_PULLUPDOWN_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_SMS_GPIO_DIRECTION_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	%esi, %ebx
	negl	%ebx
	cmovsl	%esi, %ebx
	leaq	-56(%rbp), %rdx
	movl	%ebx, %esi
	callq	_smscore_configure_gpio
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	sete	%al
	setne	%cl
	testl	%r12d, %r12d
	cmovsl	%eax, %ecx
	movzbl	%cl, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_smscore_set_gpio
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMS_GPIO_OUTPUTDRIVING_S_4mA,4,2 ## @SMS_GPIO_OUTPUTDRIVING_S_4mA
	.comm	_SMS_GPIO_OUTPUT_SLEW_RATE_FAST,4,2 ## @SMS_GPIO_OUTPUT_SLEW_RATE_FAST
	.comm	_SMS_GPIO_INPUTCHARACTERISTICS_NORMAL,4,2 ## @SMS_GPIO_INPUTCHARACTERISTICS_NORMAL
	.comm	_SMS_GPIO_PULLUPDOWN_NONE,4,2   ## @SMS_GPIO_PULLUPDOWN_NONE
	.comm	_SMS_GPIO_DIRECTION_OUTPUT,4,2  ## @SMS_GPIO_DIRECTION_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sms_set_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sms_set_gpio
_sms_set_gpio:                          ; @sms_set_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, _SMS_GPIO_OUTPUTDRIVING_S_4mA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMS_GPIO_OUTPUTDRIVING_S_4mA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SMS_GPIO_OUTPUT_SLEW_RATE_FAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMS_GPIO_OUTPUT_SLEW_RATE_FAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh6:
	adrp	x8, _SMS_GPIO_INPUTCHARACTERISTICS_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMS_GPIO_INPUTCHARACTERISTICS_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SMS_GPIO_PULLUPDOWN_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SMS_GPIO_PULLUPDOWN_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh12:
	adrp	x8, _SMS_GPIO_DIRECTION_OUTPUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMS_GPIO_DIRECTION_OUTPUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	cbz	w1, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #0
	cneg	w22, w1, mi
	add	x2, sp, #8
	mov	x1, x22
	bl	_smscore_configure_gpio
	tbnz	w0, #31, LBB0_4
; %bb.2:
	cmp	w21, #0
	cset	w8, eq
	cset	w9, ne
	cmp	w20, #0
	csel	w2, w8, w9, lt
	mov	x0, x19
	mov	x1, x22
	bl	_smscore_set_gpio
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SMS_GPIO_OUTPUTDRIVING_S_4mA,4,2 ; @SMS_GPIO_OUTPUTDRIVING_S_4mA
	.comm	_SMS_GPIO_OUTPUT_SLEW_RATE_FAST,4,2 ; @SMS_GPIO_OUTPUT_SLEW_RATE_FAST
	.comm	_SMS_GPIO_INPUTCHARACTERISTICS_NORMAL,4,2 ; @SMS_GPIO_INPUTCHARACTERISTICS_NORMAL
	.comm	_SMS_GPIO_PULLUPDOWN_NONE,4,2   ; @SMS_GPIO_PULLUPDOWN_NONE
	.comm	_SMS_GPIO_DIRECTION_OUTPUT,4,2  ; @SMS_GPIO_DIRECTION_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sms_set_gpio
.subsections_via_symbols
