	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx150x_pinconf_get
_sx150x_pinconf_get:                    ## @sx150x_pinconf_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	%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
	movq	%rdx, %r14
	movl	%esi, %r12d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_sx150x_pin_is_oscio
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	%r15d, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_20
## %bb.2:
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movl	-44(%rbp), %eax
	andl	$31, %eax
	cmpl	$129, %r15d
	jne	LBB0_11
## %bb.4:
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setne	%r13b
	jmp	LBB0_28
LBB0_5:
	leal	-128(%r15), %eax
	cmpl	$4, %eax
	ja	LBB0_20
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_sx150x_gpio_get_direction
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	jne	LBB0_25
## %bb.9:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_sx150x_gpio_get
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_28
	jmp	LBB0_29
LBB0_10:
	movl	%eax, %r13d
	jmp	LBB0_29
LBB0_11:
	cmpl	$31, %eax
	je	LBB0_27
## %bb.12:
	cmpl	$16, %eax
	jne	LBB0_25
## %bb.13:
	xorl	%r13d, %r13d
	jmp	LBB0_28
LBB0_14:
	movq	8(%rbx), %rax
	movl	8(%rax), %ecx
	movq	_SX150X_789@GOTPCREL(%rip), %rdx
	movl	$1, %r13d
	cmpl	(%rdx), %ecx
	jne	LBB0_28
## %bb.15:
	movl	16(%rbx), %edi
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_BIT
	andl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	testl	%ebx, %ebx
	js	LBB0_31
## %bb.16:
	testl	%eax, %eax
	jne	LBB0_25
	jmp	LBB0_28
LBB0_17:
	movq	8(%rbx), %rax
	movl	8(%rax), %ecx
	movq	_SX150X_789@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_20
## %bb.18:
	movl	16(%rbx), %edi
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_BIT
	andl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	testl	%r13d, %r13d
	js	LBB0_29
## %bb.19:
	movl	$1, %r13d
	testl	%eax, %eax
	jne	LBB0_28
	jmp	LBB0_25
LBB0_20:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_21:
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	12(%rax), %esi
	jmp	LBB0_23
LBB0_22:
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	16(%rax), %esi
LBB0_23:
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_BIT
	andl	%eax, -44(%rbp)
	testl	%r13d, %r13d
	js	LBB0_29
## %bb.24:
	movl	$1, %r13d
	jne	LBB0_28
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_26:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_29
LBB0_27:
	movl	$1, %r13d
LBB0_28:
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%r13d, %r13d
LBB0_29:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movl	%ebx, %r13d
	jmp	LBB0_29
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_SX150X_789,4,2                 ## @SX150X_789
	.no_dead_strip	_sx150x_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx150x_pinconf_get
_sx150x_pinconf_get:                    ; @sx150x_pinconf_get
	.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	x22, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x23, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	mov	x0, x23
	mov	x1, x22
	bl	_sx150x_pin_is_oscio
	cbz	x0, LBB0_5
; %bb.1:
	and	w8, w20, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_21
; %bb.2:
	ldr	w0, [x23, #16]
	ldr	x8, [x23, #8]
	ldr	w1, [x8, #4]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	w8, [sp, #12]
	and	w8, w8, #0x1f
	cmp	w20, #129
	b.ne	LBB0_11
; %bb.4:
	cmp	w8, #0
	cset	w21, ne
	b	LBB0_28
LBB0_5:
	sub	w8, w20, #128
	cmp	w8, #4
	b.hi	LBB0_21
; %bb.6:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	x0, x23
	mov	x1, x22
	bl	_sx150x_gpio_get_direction
	mov	x21, x0
	tbnz	w0, #31, LBB0_29
; %bb.8:
	cbnz	w21, LBB0_17
; %bb.9:
	mov	x0, x23
	mov	x1, x22
	bl	_sx150x_gpio_get
	mov	x21, x0
	tbz	w0, #31, LBB0_28
	b	LBB0_29
LBB0_10:
	mov	x21, x0
	b	LBB0_29
LBB0_11:
	cmp	w8, #31
	b.eq	LBB0_27
; %bb.12:
	cmp	w8, #16
	b.ne	LBB0_17
; %bb.13:
	mov	w21, #0
	b	LBB0_28
LBB0_14:
	ldr	x8, [x23, #8]
	ldr	w9, [x8, #8]
Lloh2:
	adrp	x10, _SX150X_789@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SX150X_789@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_27
; %bb.15:
	ldr	w0, [x23, #16]
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x21, x0
	mov	x0, x22
	bl	_BIT
	ldr	w8, [sp, #12]
	and	w8, w8, w0
	str	w8, [sp, #12]
	tbnz	w21, #31, LBB0_29
; %bb.16:
	cbz	w8, LBB0_27
LBB0_17:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_18:
	ldr	x8, [x23, #8]
	ldr	w9, [x8, #8]
Lloh7:
	adrp	x10, _SX150X_789@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SX150X_789@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_21
; %bb.19:
	ldr	w0, [x23, #16]
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x21, x0
	mov	x0, x22
	bl	_BIT
	ldr	w8, [sp, #12]
	and	w8, w8, w0
	str	w8, [sp, #12]
	tbnz	w21, #31, LBB0_29
; %bb.20:
	cbnz	w8, LBB0_27
	b	LBB0_17
LBB0_21:
Lloh10:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_29
LBB0_23:
	ldr	w0, [x23, #16]
	ldr	x8, [x23, #8]
	ldr	w1, [x8, #12]
	b	LBB0_25
LBB0_24:
	ldr	w0, [x23, #16]
	ldr	x8, [x23, #8]
	ldr	w1, [x8, #16]
LBB0_25:
	add	x2, sp, #12
	bl	_regmap_read
	mov	x21, x0
	mov	x0, x22
	bl	_BIT
	ldr	w8, [sp, #12]
	and	w8, w8, w0
	str	w8, [sp, #12]
	tbnz	w21, #31, LBB0_29
; %bb.26:
	cbz	w21, LBB0_17
LBB0_27:
	mov	w21, #1
LBB0_28:
	mov	x0, x20
	mov	x1, x21
	bl	_pinconf_to_config_packed
	mov	w21, #0
	str	x0, [x19]
LBB0_29:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_23-LBB0_7)>>2
	.byte	(LBB0_24-LBB0_7)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_SX150X_789,4,2                 ; @SX150X_789
	.no_dead_strip	_sx150x_pinconf_get
.subsections_via_symbols
