	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx_pin_config_get
_zx_pin_config_get:                     ## @zx_pin_config_get
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movb	(%rbx), %cl
	sarl	%cl, %eax
	leal	-128(%r15), %ecx
	cmpl	$4, %ecx
	ja	LBB0_10
## %bb.4:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_9:
	movq	_ZX_SLEW@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	testl	%eax, (%rcx)
	setne	%sil
	jmp	LBB0_12
LBB0_10:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_8:
	movq	_ZX_INPUT_ENABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_11:
	movq	_ZX_DS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_ZX_DS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, %esi
	jmp	LBB0_12
LBB0_7:
	movq	_ZX_PULL_UP@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_ZX_PULL_DOWN@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	$1, %esi
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_12:
	movl	%r15d, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ZX_PULL_DOWN,4,2               ## @ZX_PULL_DOWN
	.comm	_ZX_PULL_UP,4,2                 ## @ZX_PULL_UP
	.comm	_ZX_INPUT_ENABLE,4,2            ## @ZX_INPUT_ENABLE
	.comm	_ZX_DS_MASK,4,2                 ## @ZX_DS_MASK
	.comm	_ZX_DS_SHIFT,4,2                ## @ZX_DS_SHIFT
	.comm	_ZX_SLEW,4,2                    ## @ZX_SLEW
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_zx_pin_config_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx_pin_config_get
_zx_pin_config_get:                     ; @zx_pin_config_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x22, [x8, w20, uxtw #3]
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	cbz	x22, LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x9, [x22, #8]
	add	x0, x9, x8
	bl	_readl
	sub	w9, w20, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.2:
	ldr	w8, [x22]
	asr	w8, w0, w8
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh2:
	adrp	x9, _ZX_SLEW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ZX_SLEW@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	b	LBB0_11
LBB0_4:
Lloh5:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
Lloh7:
	adrp	x9, _ZX_INPUT_ENABLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ZX_INPUT_ENABLE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x9, _ZX_DS_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ZX_DS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _ZX_DS_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ZX_DS_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w1, w8, w9
	b	LBB0_11
LBB0_7:
Lloh15:
	adrp	x9, _ZX_PULL_UP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ZX_PULL_UP@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x9, _ZX_PULL_DOWN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ZX_PULL_DOWN@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	mov	w1, #1
LBB0_11:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_14
LBB0_12:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ZX_PULL_DOWN,4,2               ; @ZX_PULL_DOWN
	.comm	_ZX_PULL_UP,4,2                 ; @ZX_PULL_UP
	.comm	_ZX_INPUT_ENABLE,4,2            ; @ZX_INPUT_ENABLE
	.comm	_ZX_DS_MASK,4,2                 ; @ZX_DS_MASK
	.comm	_ZX_DS_SHIFT,4,2                ; @ZX_DS_SHIFT
	.comm	_ZX_SLEW,4,2                    ; @ZX_SLEW
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_zx_pin_config_get
.subsections_via_symbols
