	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65218_gpio_set_config
_tps65218_gpio_set_config:              ## @tps65218_gpio_set_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	(%rax), %r14
	movq	%r15, %rdi
	callq	_pinconf_to_config_param
	cmpl	$2, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$1, %ebx
	je	LBB0_4
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_6
LBB0_3:
	movq	_PIN_CONFIG_DRIVE_OPEN_DRAIN@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	je	LBB0_7
LBB0_6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_7:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_PIN_CONFIG_DRIVE_OPEN_DRAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.8:
	movq	_TPS65218_REG_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPS65218_CONFIG1_GPO2_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TPS65218_PROTECT_L1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tps65218_clear_bits            ## TAILCALL
LBB0_5:
	movq	_PIN_CONFIG_DRIVE_PUSH_PULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.9:
	movq	_TPS65218_REG_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPS65218_CONFIG1_GPO2_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TPS65218_PROTECT_L1@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ecx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tps65218_set_bits              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_CONFIG_DRIVE_OPEN_DRAIN,4,2 ## @PIN_CONFIG_DRIVE_OPEN_DRAIN
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_TPS65218_REG_CONFIG1,4,2       ## @TPS65218_REG_CONFIG1
	.comm	_TPS65218_CONFIG1_GPO2_BUF,4,2  ## @TPS65218_CONFIG1_GPO2_BUF
	.comm	_TPS65218_PROTECT_L1,4,2        ## @TPS65218_PROTECT_L1
	.comm	_PIN_CONFIG_DRIVE_PUSH_PULL,4,2 ## @PIN_CONFIG_DRIVE_PUSH_PULL
	.no_dead_strip	_tps65218_gpio_set_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65218_gpio_set_config
_tps65218_gpio_set_config:              ; @tps65218_gpio_set_config
	.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	x21, x2
	mov	x20, x1
	bl	_gpiochip_get_data
	ldr	x19, [x0]
	mov	x0, x21
	bl	_pinconf_to_config_param
	cmp	w20, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w20, LBB0_9
LBB0_3:
Lloh0:
	adrp	x8, _PIN_CONFIG_DRIVE_OPEN_DRAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIN_CONFIG_DRIVE_OPEN_DRAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x8, _PIN_CONFIG_DRIVE_OPEN_DRAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_CONFIG_DRIVE_OPEN_DRAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _TPS65218_REG_CONFIG1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TPS65218_REG_CONFIG1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TPS65218_CONFIG1_GPO2_BUF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TPS65218_CONFIG1_GPO2_BUF@GOTPAGEOFF]
Lloh11:
	adrp	x9, _TPS65218_PROTECT_L1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TPS65218_PROTECT_L1@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	ldr	w3, [x9]
	mov	x0, x19
	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
	b	_tps65218_clear_bits
LBB0_7:
Lloh15:
	adrp	x8, _PIN_CONFIG_DRIVE_PUSH_PULL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PIN_CONFIG_DRIVE_PUSH_PULL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
Lloh18:
	adrp	x8, _TPS65218_REG_CONFIG1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TPS65218_REG_CONFIG1@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _TPS65218_CONFIG1_GPO2_BUF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TPS65218_CONFIG1_GPO2_BUF@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _TPS65218_PROTECT_L1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TPS65218_PROTECT_L1@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x3, x2
	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
	b	_tps65218_set_bits
LBB0_9:
Lloh27:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_CONFIG_DRIVE_OPEN_DRAIN,4,2 ; @PIN_CONFIG_DRIVE_OPEN_DRAIN
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_TPS65218_REG_CONFIG1,4,2       ; @TPS65218_REG_CONFIG1
	.comm	_TPS65218_CONFIG1_GPO2_BUF,4,2  ; @TPS65218_CONFIG1_GPO2_BUF
	.comm	_TPS65218_PROTECT_L1,4,2        ; @TPS65218_PROTECT_L1
	.comm	_PIN_CONFIG_DRIVE_PUSH_PULL,4,2 ; @PIN_CONFIG_DRIVE_PUSH_PULL
	.no_dead_strip	_tps65218_gpio_set_config
.subsections_via_symbols
