	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2711_pinconf_set
_bcm2711_pinconf_set:                   ## @bcm2711_pinconf_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.1:
	movl	%r12d, %r12d
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %r15
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %edx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_bcm2711_pull_config_set
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r14, %r12
	je	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r14,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %ebx
	movq	(%r13,%r14,8), %rdi
	callq	_pinconf_to_config_argument
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r15,%rbx,4), %rcx
	addq	%r15, %rcx
	jmpq	*%rcx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_GPSET0@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_GPCLR0@GOTPCREL(%rip), %rcx
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_bcm2835_gpio_set_bit
	jmp	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BCM2711_PULL_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BCM2711_PULL_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BCM2711_PULL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_BCM2711_PULL_NONE@GOTPCREL(%rip), %rcx
	movq	_BCM2835_PUD_DOWN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BCM2711_PULL_DOWN@GOTPCREL(%rip), %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_BCM2835_PUD_UP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BCM2711_PULL_UP@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_BCM2835_PUD_UP,4,2             ## @BCM2835_PUD_UP
	.comm	_BCM2711_PULL_UP,4,2            ## @BCM2711_PULL_UP
	.comm	_BCM2835_PUD_DOWN,4,2           ## @BCM2835_PUD_DOWN
	.comm	_BCM2711_PULL_DOWN,4,2          ## @BCM2711_PULL_DOWN
	.comm	_BCM2711_PULL_NONE,4,2          ## @BCM2711_PULL_NONE
	.comm	_GPSET0,4,2                     ## @GPSET0
	.comm	_GPCLR0,4,2                     ## @GPCLR0
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_bcm2711_pinconf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2711_pinconf_set
_bcm2711_pinconf_set:                   ; @bcm2711_pinconf_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_pinctrl_dev_get_drvdata
	cbz	w22, LBB0_11
; %bb.1:
	mov	x21, x0
	mov	w23, w22
Lloh0:
	adrp	x26, _BCM2711_PULL_UP@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BCM2711_PULL_UP@GOTPAGEOFF]
Lloh2:
	adrp	x27, _BCM2711_PULL_DOWN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _BCM2711_PULL_DOWN@GOTPAGEOFF]
Lloh4:
	adrp	x28, lJTI0_0@PAGE
Lloh5:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh6:
	adrp	x24, _BCM2711_PULL_NONE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _BCM2711_PULL_NONE@GOTPAGEOFF]
Lloh8:
	adrp	x25, _BCM2835_PUD_DOWN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _BCM2835_PUD_DOWN@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x24]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_bcm2711_pull_config_set
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #8
	subs	x23, x23, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_argument
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #0
Lloh10:
	adrp	x8, _GPSET0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GPSET0@GOTPAGEOFF]
Lloh12:
	adrp	x9, _GPCLR0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GPCLR0@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_bcm2835_gpio_set_bit
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x26]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x27]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x8, _BCM2835_PUD_UP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BCM2835_PUD_UP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x25]
	cmp	w0, w9
	csel	x9, x27, x24, eq
	cmp	w0, w8
	csel	x8, x26, x9, eq
	ldr	w2, [x8]
	b	LBB0_3
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh17:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_BCM2835_PUD_UP,4,2             ; @BCM2835_PUD_UP
	.comm	_BCM2711_PULL_UP,4,2            ; @BCM2711_PULL_UP
	.comm	_BCM2835_PUD_DOWN,4,2           ; @BCM2835_PUD_DOWN
	.comm	_BCM2711_PULL_DOWN,4,2          ; @BCM2711_PULL_DOWN
	.comm	_BCM2711_PULL_NONE,4,2          ; @BCM2711_PULL_NONE
	.comm	_GPSET0,4,2                     ; @GPSET0
	.comm	_GPCLR0,4,2                     ; @GPCLR0
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_bcm2711_pinconf_set
.subsections_via_symbols
