	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftr_gpio_set_hw_reset
_ftr_gpio_set_hw_reset:                 ## @ftr_gpio_set_hw_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	xorl	%eax, %eax
	testq	%rdi, %rdi
	sete	%al
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_hw_reset_gpio@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	js	LBB0_2
## %bb.3:
	movq	_PMAC_FTR_READ_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pmac_call_feature
	movq	_hw_reset@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_SWITCH_GPIO
	movq	_PMAC_FTR_WRITE_GPIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%r14), %rdx
	xorl	%esi, %esi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pmac_call_feature              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_reset_gpio,8,3              ## @hw_reset_gpio
	.comm	_PMAC_FTR_READ_GPIO,4,2         ## @PMAC_FTR_READ_GPIO
	.comm	_hw_reset,4,2                   ## @hw_reset
	.comm	_PMAC_FTR_WRITE_GPIO,4,2        ## @PMAC_FTR_WRITE_GPIO
	.no_dead_strip	_ftr_gpio_set_hw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftr_gpio_set_hw_reset
_ftr_gpio_set_hw_reset:                 ; @ftr_gpio_set_hw_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x20, _hw_reset_gpio@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hw_reset_gpio@GOTPAGEOFF]
	ldr	x2, [x20]
	tbnz	x2, #63, LBB0_1
; %bb.3:
Lloh2:
	adrp	x8, _PMAC_FTR_READ_GPIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PMAC_FTR_READ_GPIO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, #0
	mov	w3, #0
	bl	_pmac_call_feature
	mov	x1, x0
Lloh5:
	adrp	x8, _hw_reset@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hw_reset@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x2, x19
	bl	_SWITCH_GPIO
	mov	x3, x0
Lloh8:
	adrp	x8, _PMAC_FTR_WRITE_GPIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PMAC_FTR_WRITE_GPIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x2, [x20]
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pmac_call_feature
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_reset_gpio,8,3              ; @hw_reset_gpio
	.comm	_PMAC_FTR_READ_GPIO,4,2         ; @PMAC_FTR_READ_GPIO
	.comm	_hw_reset,4,2                   ; @hw_reset
	.comm	_PMAC_FTR_WRITE_GPIO,4,2        ; @PMAC_FTR_WRITE_GPIO
	.no_dead_strip	_ftr_gpio_set_hw_reset
.subsections_via_symbols
