	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_pctl_dt_node_to_map_pull
_bcm2835_pctl_dt_node_to_map_pull:      ## @bcm2835_pctl_dt_node_to_map_pull
	.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
	movl	%ecx, %ebx
	cmpl	$3, %ecx
	jl	LBB0_2
## %bb.1:
	movq	%rsi, %rdx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	%r8, %r15
	movl	%edx, %r14d
	movq	(%r8), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	movq	_BCM2835_PINCONF_PARAM_PULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r12)
	movq	_PIN_MAP_TYPE_CONFIGS_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	_bcm2835_gpio_pins@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 12(%r13)
	movq	%r12, (%r13)
	movl	$1, 8(%r13)
	addq	$24, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%pOF: invalid brcm,pull %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BCM2835_PINCONF_PARAM_PULL,4,2 ## @BCM2835_PINCONF_PARAM_PULL
	.comm	_PIN_MAP_TYPE_CONFIGS_PIN,4,2   ## @PIN_MAP_TYPE_CONFIGS_PIN
	.comm	_bcm2835_gpio_pins,8,3          ## @bcm2835_gpio_pins
	.no_dead_strip	_bcm2835_pctl_dt_node_to_map_pull
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_pctl_dt_node_to_map_pull
_bcm2835_pctl_dt_node_to_map_pull:      ; @bcm2835_pctl_dt_node_to_map_pull
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	cmp	w3, #3
	b.lt	LBB0_2
; %bb.1:
	mov	x2, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x19, x4
	mov	x20, x2
	ldr	x23, [x4]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh7:
	adrp	x8, _BCM2835_PINCONF_PARAM_PULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BCM2835_PINCONF_PARAM_PULL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x22]
Lloh10:
	adrp	x8, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x23, #16]
Lloh13:
	adrp	x8, _bcm2835_gpio_pins@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bcm2835_gpio_pins@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	w8, [x8, w20, sxtw #2]
	str	x22, [x23]
	mov	w9, #1
	stp	w9, w8, [x23, #8]
	ldr	x8, [x19]
	add	x8, x8, #24
	str	x8, [x19]
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%pOF: invalid brcm,pull %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BCM2835_PINCONF_PARAM_PULL,4,2 ; @BCM2835_PINCONF_PARAM_PULL
	.comm	_PIN_MAP_TYPE_CONFIGS_PIN,4,2   ; @PIN_MAP_TYPE_CONFIGS_PIN
	.comm	_bcm2835_gpio_pins,8,3          ; @bcm2835_gpio_pins
	.no_dead_strip	_bcm2835_pctl_dt_node_to_map_pull
.subsections_via_symbols
