	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_gpio_pin_set
_bcm_gpio_pin_set:                      ## @bcm_gpio_pin_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_device_get_softc
	movq	%rax, %r14
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	8(%r14), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rcx,%rdx,4)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bcm_gpio_pin_is_ro
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	callq	_BCM_GPIO_LOCK
	movl	%ebx, %edi
	callq	_BCM_GPIO_BANK
	movl	%eax, %edi
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	callq	_BCM_GPIO_GPSET
	jmp	LBB0_9
LBB0_8:
	callq	_BCM_GPIO_GPCLR
LBB0_9:
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_BCM_GPIO_MASK
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_BCM_GPIO_WRITE
	movq	%r14, %rdi
	callq	_BCM_GPIO_UNLOCK
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bcm_gpio_pin_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_gpio_pin_set
_bcm_gpio_pin_set:                      ; @bcm_gpio_pin_set
	.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	_device_get_softc
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cmp	w10, w20
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_bcm_gpio_pin_is_ro
	cbz	x0, LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_6:
	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
LBB0_7:
	mov	x0, x19
	bl	_BCM_GPIO_LOCK
	mov	x0, x20
	bl	_BCM_GPIO_BANK
	cbz	w21, LBB0_9
; %bb.8:
	bl	_BCM_GPIO_GPSET
	b	LBB0_10
LBB0_9:
	bl	_BCM_GPIO_GPCLR
LBB0_10:
	mov	x21, x0
	mov	x0, x20
	bl	_BCM_GPIO_MASK
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_BCM_GPIO_WRITE
	mov	x0, x19
	bl	_BCM_GPIO_UNLOCK
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bcm_gpio_pin_set
.subsections_via_symbols
